Obtains an instance defining a transition between two offsets.
Obtains an instance defining a transition between two offsets.
Applications should normally obtain an instance from ZoneRules
.
This factory is only intended for use when creating ZoneRules
.
the transition date-time at the transition, which never actually occurs, expressed local to the before offset, not null
the offset before the transition, not null
the offset at and after the transition, not null
the transition, not null
IllegalArgumentException
if { @code offsetBefore} and { @code offsetAfter}
are equal, or { @code transition.getNano()} returns non-zero value
A transition between two offsets caused by a discontinuity in the local time-line.
A transition between two offsets is normally the result of a daylight savings cutover. The discontinuity is normally a gap in spring and an overlap in autumn.
ZoneOffsetTransition
models the transition between the two offsets.Gaps occur where there are local date-times that simply do not not exist. An example would be when the offset changes from
+03:00
to+04:00
. This might be described as 'the clocks will move forward one hour tonight at 1am'.Overlaps occur where there are local date-times that exist twice. An example would be when the offset changes from
+04:00
to+03:00
. This might be described as 'the clocks will move back one hour tonight at 2am'.Specification for implementors
This class is immutable and thread-safe.