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. null may be ignored if the rules have no historic wall-offset transitions.

Returns

The next transition after the specified instant, or null if there is none.

Attributes

Exceptions

Thrown if instant is null and the rules have historic wall-offset transitions.

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