Language

ZoneRules.NextTransition(Instant) Method

Definition

Gets the next transition after the specified instant.

[Android.Runtime.Register("nextTransition", "(Ljava/time/Instant;)Ljava/time/zone/ZoneOffsetTransition;", "", ApiSince=26)]
public Java.Time.Zone.ZoneOffsetTransition? NextTransition(Java.Time.Instant? instant);
[<Android.Runtime.Register("nextTransition", "(Ljava/time/Instant;)Ljava/time/zone/ZoneOffsetTransition;", "", ApiSince=26)>]
member this.NextTransition : Java.Time.Instant -> Java.Time.Zone.ZoneOffsetTransition

Parameters

instant
Instant

The instant after which to get the next transition. Fixed-offset rules may ignore null; variable rules do not.

Returns

The next transition after the specified instant, or null if it is after the last transition.

Attributes

Exceptions

Thrown if instant is null and the rules are not fixed-offset.

Remarks

Gets the next transition after the specified instant. This returns details of the next transition after the specified instant. For example, if the instant represents a point where "Summer" daylight savings time applies, then the method will return the transition to the next "Winter" time.

Java reference for java.time.zone.ZoneRules.nextTransition.

Applies to