ZoneRules.IsDaylightSavings(Instant) Method

Definition

Checks whether the specified instant is in daylight savings.

[Android.Runtime.Register("isDaylightSavings", "(Ljava/time/Instant;)Z", "", ApiSince=26)]
public bool IsDaylightSavings(Java.Time.Instant? instant);
[<Android.Runtime.Register("isDaylightSavings", "(Ljava/time/Instant;)Z", "", ApiSince=26)>]
member this.IsDaylightSavings : Java.Time.Instant -> bool

Parameters

instant
Instant

The instant to check for daylight savings. Fixed-offset rules may ignore null; variable rules do not.

Returns

true if the specified instant is in daylight savings; otherwise, false.

Attributes

Exceptions

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

Applies to