Obtains an instance of ZoneRules
that always uses the same offset.
Obtains an instance of ZoneRules
that always uses the same offset.
The returned rules always have the same offset.
the offset, not null
the zone rules, not null
Obtains an instance of ZoneRules
with full transition rules.
Obtains an instance of ZoneRules
with full transition rules.
the standard offset to use before legal rules were set, not null
the wall offset to use before legal rules were set, not null
the list of changes to the standard offset, not null
the list of transitions, not null
the recurring last rules, size 16 or less, not null
the zone rules, not null
The rules defining how the zone offset varies for a single time-zone.
The rules model all the historic and future transitions for a time-zone.
ZoneOffsetTransition
is used for known transitions, typically historic.ZoneOffsetTransitionRule
is used for future transitions that are based on the result of an algorithm.The rules are loaded via
ZoneRulesProvider
using aZoneId
. The same rules may be shared internally between multiple zone IDs.Serializing an instance of
ZoneRules
will store the entire set of rules. It does not store the zone ID as it is not part of the state of this object.A rule implementation may or may not store full information about historic and future transitions, and the information stored is only as accurate as that supplied to the implementation by the rules provider. Applications should treat the data provided as representing the best information available to the implementation of this rule.
Specification for implementors
The supplied implementations of this class are immutable and thread-safe.