ZoneRules.NextTransition(Instant) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 fully defined 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 fully defined wall-offset transitions.
May be thrown while applying recurring rules. For example, Android 8 through 13 throw for Max when they need recurring rules. Runtime updates can change this behavior.
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.