Language

ZoneRules.PreviousTransition(Instant) Method

Definition

Gets the previous transition before the specified instant.

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

Parameters

instant
Instant

The instant before which to get the previous transition. null may be ignored if the rules have no fully defined wall-offset transitions.

Returns

The previous transition before 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 previous transition before the specified instant. This returns details of the previous transition before the specified instant. For example, if the instant represents a point where "summer" daylight saving time applies, then the method will return the transition from the previous "winter" time.

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

Applies to