LocalTime.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 LocalTime from a temporal object.
[Android.Runtime.Register("from", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/LocalTime;", "", ApiSince=26)]
public static Java.Time.LocalTime? From(Java.Time.Temporal.ITemporalAccessor? temporal);
[<Android.Runtime.Register("from", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/LocalTime;", "", ApiSince=26)>]
static member From : Java.Time.Temporal.ITemporalAccessor -> Java.Time.LocalTime
Parameters
- temporal
- ITemporalAccessor
the temporal object to convert, not null
Returns
the local time, not null
- Attributes
Remarks
Obtains an instance of LocalTime from a temporal object. This obtains a local time based on the specified temporal. A TemporalAccessor represents an arbitrary set of date and time information, which this factory converts to an instance of LocalTime. The conversion uses the TemporalQueries.localTime() query, which relies on extracting the NANO_OF_DAY field. This method matches the signature of the functional interface TemporalQuery allowing it to be used as a query via method reference, LocalTime::from.
Java reference for java.time.LocalTime.from.