MonthDay.From(ITemporalAccessor) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Obtains an instance of MonthDay from a temporal object.
[Android.Runtime.Register("from", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/MonthDay;", "", ApiSince=26)]
public static Java.Time.MonthDay? From(Java.Time.Temporal.ITemporalAccessor? temporal);
[<Android.Runtime.Register("from", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/MonthDay;", "", ApiSince=26)>]
static member From : Java.Time.Temporal.ITemporalAccessor -> Java.Time.MonthDay
Parameters
- temporal
- ITemporalAccessor
the temporal object to convert, not null
Returns
the month-day, not null
- Attributes
Remarks
Obtains an instance of MonthDay from a temporal object. This obtains a month-day based on the specified temporal. A TemporalAccessor represents an arbitrary set of date and time information, which this factory converts to an instance of MonthDay. The conversion extracts the MONTH_OF_YEAR and DAY_OF_MONTH fields. The extraction is only permitted if the temporal object has an ISO chronology, or can be converted to a LocalDate. This method matches the signature of the functional interface TemporalQuery allowing it to be used as a query via method reference, MonthDay::from.
Java reference for java.time.MonthDay.from.