ZonedDateTime.WithLaterOffsetAtOverlap Method

Definition

Returns a copy of this date-time changing the zone offset to the later of the two valid offsets at a local time-line overlap.

[Android.Runtime.Register("withLaterOffsetAtOverlap", "()Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public Java.Time.ZonedDateTime? WithLaterOffsetAtOverlap();
[<Android.Runtime.Register("withLaterOffsetAtOverlap", "()Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
member this.WithLaterOffsetAtOverlap : unit -> Java.Time.ZonedDateTime

Returns

a ZonedDateTime based on this date-time with the later offset, not null

Attributes

Remarks

Returns a copy of this date-time changing the zone offset to the later of the two valid offsets at a local time-line overlap. This method only has any effect when the local time-line overlaps, such as at an autumn daylight savings cutover. In this scenario, there are two valid offsets for the local date-time. Calling this method will return a zoned date-time with the later of the two selected. If this method is called when it is not an overlap, this is returned. This instance is immutable and unaffected by this method call.

Java reference for java.time.ZonedDateTime.withLaterOffsetAtOverlap.

Applies to