A definition of the way a local time can be converted to the actual transition date-time.
A definition of the way a local time can be converted to the actual transition date-time.
Time zone rules are expressed in one of three ways:
Obtains an instance defining the yearly rule to create transitions between two offsets.
Obtains an instance defining the yearly rule to create transitions between two offsets.
Applications should normally obtain an instance from ZoneRules
.
This factory is only intended for use when creating ZoneRules
.
the month of the month-day of the first day of the cutover week, not null
the day of the month-day of the cutover week, positive if the week is that day or later, negative if the week is that day or earlier, counting from the last day of the month, from -28 to 31 excluding 0
the required day-of-week, null if the month-day should not be changed
the cutover time in the 'before' offset, not null
whether the time is midnight at the end of day
how to interpret the cutover
the standard offset in force at the cutover, not null
the offset before the cutover, not null
the offset after the cutover, not null
the rule, not null
IllegalArgumentException
if the end of day flag is true when the time is not midnight
A rule expressing how to create a transition.
This class allows rules for identifying future transitions to be expressed. A rule might be written in many forms:
These different rule types can be expressed and queried.
Specification for implementors
This class is immutable and thread-safe.