Språk

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 historic 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 historic wall-offset transitions.

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