ChronoZonedDateTime.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.
Caution
Use 'Java.Time.Chrono.IChronoZonedDateTime.From'. This class will be removed in a future release.
Gets a zoned date-time from a temporal object.
[Android.Runtime.Register("from", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/chrono/ChronoZonedDateTime;", "", ApiSince=26)]
[System.Obsolete("Use 'Java.Time.Chrono.IChronoZonedDateTime.From'. This class will be removed in a future release.")]
public static Java.Time.Chrono.IChronoZonedDateTime? From(Java.Time.Temporal.ITemporalAccessor? temporal);
[<Android.Runtime.Register("from", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/chrono/ChronoZonedDateTime;", "", ApiSince=26)>]
[<System.Obsolete("Use 'Java.Time.Chrono.IChronoZonedDateTime.From'. This class will be removed in a future release.")>]
static member From : Java.Time.Temporal.ITemporalAccessor -> Java.Time.Chrono.IChronoZonedDateTime
Parameters
- temporal
- ITemporalAccessor
The temporal object to convert. It must not be null.
Returns
The converted zoned date-time, which is not null.
- Attributes
Remarks
The conversion obtains the chronology, date, time, and time zone from temporal. It has the same behavior as calling Chronology.zonedDateTime(TemporalAccessor) on that chronology. A DateTimeException is thrown if the conversion cannot be completed.
This legacy method exposes the Java static interface method. Use From(ITemporalAccessor) instead.
Java reference for java.time.chrono.ChronoZonedDateTime.from.