Udostępnij za pośrednictwem


IsoChronology.LocalDateTime(ITemporalAccessor) Method

Definition

Obtains an ISO local date-time from another date-time object.

[Android.Runtime.Register("localDateTime", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public Java.Time.LocalDateTime? LocalDateTime (Java.Time.Temporal.ITemporalAccessor? temporal);
[<Android.Runtime.Register("localDateTime", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
member this.LocalDateTime : Java.Time.Temporal.ITemporalAccessor -> Java.Time.LocalDateTime

Parameters

temporal
ITemporalAccessor

the date-time object to convert, not null

Returns

the ISO local date-time, not null

Attributes

Remarks

Obtains an ISO local date-time from another date-time object.

This is equivalent to LocalDateTime#from(TemporalAccessor).

Java documentation for java.time.chrono.IsoChronology.localDateTime(java.time.temporal.TemporalAccessor).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to