object ZoneOffsetTransition extends Serializable
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.
- Alphabetic
- By Inheritance
- ZoneOffsetTransition
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def of(transition: LocalDateTime, offsetBefore: ZoneOffset, offsetAfter: ZoneOffset): ZoneOffsetTransition
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 creatingZoneRules
.- transition
the transition date-time at the transition, which never actually occurs, expressed local to the before offset, not null
- offsetBefore
the offset before the transition, not null
- offsetAfter
the offset at and after the transition, not null
- returns
the transition, not null
- Exceptions thrown
IllegalArgumentException
if { @code offsetBefore} and { @code offsetAfter} are equal, or { @code transition.getNano()} returns non-zero value
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()