Compartir a través de


IsoChronology.ZonedDateTime Method

Definition

Overloads

ZonedDateTime(ITemporalAccessor)

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

ZonedDateTime(Instant, ZoneId)

Obtains an ISO zoned date-time in this chronology from an Instant.

ZonedDateTime(ITemporalAccessor)

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

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

Parameters

temporal
ITemporalAccessor

the date-time object to convert, not null

Returns

the ISO zoned date-time, not null

Attributes

Remarks

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

This is equivalent to ZonedDateTime#from(TemporalAccessor).

Java documentation for java.time.chrono.IsoChronology.zonedDateTime(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

ZonedDateTime(Instant, ZoneId)

Obtains an ISO zoned date-time in this chronology from an Instant.

[Android.Runtime.Register("zonedDateTime", "(Ljava/time/Instant;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public Java.Time.ZonedDateTime? ZonedDateTime (Java.Time.Instant? instant, Java.Time.ZoneId? zone);
[<Android.Runtime.Register("zonedDateTime", "(Ljava/time/Instant;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
member this.ZonedDateTime : Java.Time.Instant * Java.Time.ZoneId -> Java.Time.ZonedDateTime

Parameters

instant
Instant

the instant to create the date-time from, not null

zone
ZoneId

the time-zone, not null

Returns

the zoned date-time, not null

Attributes

Remarks

Obtains an ISO zoned date-time in this chronology from an Instant.

This is equivalent to ZonedDateTime#ofInstant(Instant, ZoneId).

Java documentation for java.time.chrono.IsoChronology.zonedDateTime(java.time.Instant, java.time.ZoneId).

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