Share via


ZonedDateTime.OfInstant Method

Definition

Overloads

OfInstant(Instant, ZoneId)
OfInstant(LocalDateTime, ZoneOffset, ZoneId)

OfInstant(Instant, ZoneId)

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

Parameters

instant
Instant
zone
ZoneId

Returns

Attributes

Applies to

OfInstant(LocalDateTime, ZoneOffset, ZoneId)

[Android.Runtime.Register("ofInstant", "(Ljava/time/LocalDateTime;Ljava/time/ZoneOffset;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public static Java.Time.ZonedDateTime? OfInstant (Java.Time.LocalDateTime? localDateTime, Java.Time.ZoneOffset? offset, Java.Time.ZoneId? zone);
[<Android.Runtime.Register("ofInstant", "(Ljava/time/LocalDateTime;Ljava/time/ZoneOffset;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
static member OfInstant : Java.Time.LocalDateTime * Java.Time.ZoneOffset * Java.Time.ZoneId -> Java.Time.ZonedDateTime

Parameters

localDateTime
LocalDateTime
offset
ZoneOffset
zone
ZoneId

Returns

Attributes

Applies to