Object/Class

java.time

ZoneOffset

Related Docs: class ZoneOffset | package time

Permalink

object ZoneOffset extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZoneOffset
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. lazy val MAX: ZoneOffset

    Permalink

    Constant for the maximum supported offset.

  5. lazy val MIN: ZoneOffset

    Permalink

    Constant for the maximum supported offset.

  6. lazy val UTC: ZoneOffset

    Permalink

    The time-zone offset for UTC, with an ID of 'Z'.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def from(temporal: TemporalAccessor): ZoneOffset

    Permalink

    Obtains an instance of ZoneOffset from a temporal object.

    Obtains an instance of ZoneOffset from a temporal object.

    A TemporalAccessor represents some form of date and time information. This factory converts the arbitrary temporal object to an instance of ZoneOffset.

    The conversion uses the TemporalQueries#offset() query, which relies on extracting the OFFSET_SECONDS field.

    This method matches the signature of the functional interface TemporalQuery allowing it to be used in queries via method reference, ZoneOffset::from.

    temporal

    the temporal object to convert, not null

    returns

    the zone-offset, not null

    Exceptions thrown

    DateTimeException if unable to convert to an { @code ZoneOffset}

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def of(offsetId: String): ZoneOffset

    Permalink

    Obtains an instance of ZoneOffset using the ID.

    Obtains an instance of ZoneOffset using the ID.

    This method parses the string ID of a ZoneOffset to return an instance. The parsing accepts all the formats generated by #getId(), plus some additional formats:

    • Z - for UTC
    • +h
    • +hh
    • +hh:mm
    • -hh:mm
    • +hhmm
    • -hhmm
    • +hh:mm:ss
    • -hh:mm:ss
    • +hhmmss
    • -hhmmss

    Note that ± means either the plus or minus symbol.

    The ID of the returned offset will be normalized to one of the formats described by #getId().

    The maximum supported range is from +18:00 to -18:00 inclusive.

    offsetId

    the offset ID, not null

    returns

    the zone-offset, not null

    Exceptions thrown

    DateTimeException if the offset ID is invalid

  20. def ofHours(hours: Int): ZoneOffset

    Permalink

    Obtains an instance of ZoneOffset using an offset in hours.

    Obtains an instance of ZoneOffset using an offset in hours.

    hours

    the time-zone offset in hours, from -18 to +18

    returns

    the zone-offset, not null

    Exceptions thrown

    DateTimeException if the offset is not in the required range

  21. def ofHoursMinutes(hours: Int, minutes: Int): ZoneOffset

    Permalink

    Obtains an instance of ZoneOffset using an offset in hours and minutes.

    Obtains an instance of ZoneOffset using an offset in hours and minutes.

    The sign of the hours and minutes components must match. Thus, if the hours is negative, the minutes must be negative or zero. If the hours is zero, the minutes may be positive, negative or zero.

    hours

    the time-zone offset in hours, from -18 to +18

    minutes

    the time-zone offset in minutes, from 0 to ±59, sign matches hours

    returns

    the zone-offset, not null

    Exceptions thrown

    DateTimeException if the offset is not in the required range

  22. def ofHoursMinutesSeconds(hours: Int, minutes: Int, seconds: Int): ZoneOffset

    Permalink

    Obtains an instance of ZoneOffset using an offset in hours, minutes and seconds.

    Obtains an instance of ZoneOffset using an offset in hours, minutes and seconds.

    The sign of the hours, minutes and seconds components must match. Thus, if the hours is negative, the minutes and seconds must be negative or zero.

    hours

    the time-zone offset in hours, from -18 to +18

    minutes

    the time-zone offset in minutes, from 0 to ±59, sign matches hours and seconds

    seconds

    the time-zone offset in seconds, from 0 to ±59, sign matches hours and minutes

    returns

    the zone-offset, not null

    Exceptions thrown

    DateTimeException if the offset is not in the required range

  23. def ofTotalSeconds(totalSeconds: Int): ZoneOffset

    Permalink

    Obtains an instance of ZoneOffset specifying the total offset in seconds

    Obtains an instance of ZoneOffset specifying the total offset in seconds

    The offset must be in the range -18:00 to +18:00, which corresponds to -64800 to +64800.

    totalSeconds

    the total time-zone offset in seconds, from -64800 to +64800

    returns

    the ZoneOffset, not null

    Exceptions thrown

    DateTimeException if the offset is not in the required range

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped