LocalDateTime.AtOffset(ZoneOffset) Method

Definition

Combines this date-time with an offset to create an OffsetDateTime.

[Android.Runtime.Register("atOffset", "(Ljava/time/ZoneOffset;)Ljava/time/OffsetDateTime;", "", ApiSince=26)]
public Java.Time.OffsetDateTime? AtOffset(Java.Time.ZoneOffset? offset);
[<Android.Runtime.Register("atOffset", "(Ljava/time/ZoneOffset;)Ljava/time/OffsetDateTime;", "", ApiSince=26)>]
member this.AtOffset : Java.Time.ZoneOffset -> Java.Time.OffsetDateTime

Parameters

offset
ZoneOffset

the offset to combine with, not null

Returns

the offset date-time formed from this date-time and the specified offset, not null

Attributes

Remarks

Combines this date-time with an offset to create an OffsetDateTime. This returns an OffsetDateTime formed from this date-time at the specified offset. All possible combinations of date-time and offset are valid.

Java reference for java.time.LocalDateTime.atOffset.

Applies to