object ZoneOffsetTransitionRule extends Serializable
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:
- the 16th March
- the Sunday on or after the 16th March
- the Sunday on or before the 16th March
- the last Sunday in February
These different rule types can be expressed and queried.
Specification for implementors
This class is immutable and thread-safe.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- ZoneOffsetTransitionRule
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final class TimeDefinition extends Enum[TimeDefinition]
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[java.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[java.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(month: Month, dayOfMonthIndicator: Int, dayOfWeek: DayOfWeek, time: LocalTime, timeEndOfDay: Boolean, timeDefnition: TimeDefinition, standardOffset: ZoneOffset, offsetBefore: ZoneOffset, offsetAfter: ZoneOffset): ZoneOffsetTransitionRule
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 creatingZoneRules
.- month
the month of the month-day of the first day of the cutover week, not null
- dayOfMonthIndicator
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
- dayOfWeek
the required day-of-week, null if the month-day should not be changed
- time
the cutover time in the 'before' offset, not null
- timeEndOfDay
whether the time is midnight at the end of day
- timeDefnition
how to interpret the cutover
- standardOffset
the standard offset in force at the cutover, not null
- offsetBefore
the offset before the cutover, not null
- offsetAfter
the offset after the cutover, not null
- returns
the rule, not null
- Exceptions thrown
IllegalArgumentException
if the end of day flag is true when the time is not midnight
- 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()
- object TimeDefinition extends Serializable
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:
- Relative to UTC
- Relative to the standard offset in force
- Relative to the wall offset (what you would see on a clock on the wall)