Teanga

ZoneId.Rules Property

Definition

Gets the time-zone rules for this ID allowing calculations to be performed.

public abstract Java.Time.Zone.ZoneRules? Rules { [Android.Runtime.Register("getRules", "()Ljava/time/zone/ZoneRules;", "GetGetRulesHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getRules", "()Ljava/time/zone/ZoneRules;", "GetGetRulesHandler", ApiSince=26)>]
member this.Rules : Java.Time.Zone.ZoneRules

Property Value

the rules, not null

Attributes

Remarks

Gets the time-zone rules for this ID allowing calculations to be performed. The rules provide the functionality associated with a time-zone, such as finding the offset for a given instant or local date-time. A time-zone can be invalid if it is deserialized in a Java Runtime which does not have the same rules loaded as the Java Runtime that stored it. In this case, calling this method will throw a ZoneRulesException. ZoneOffset will always return a set of rules where the offset never changes.

Java reference for java.time.ZoneId.getRules.

Applies to