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. Fixed-offset rules may ignore null; variable rules do not.

Returns

The previous transition before the specified instant, or null if it is before the first transition.

Attributes

Exceptions

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

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