codes.reactive.scalatime

ZoneOffset

object ZoneOffset

Factory object for obtaining instances of ZoneOffset. Also provides default instances ZoneOffset.UTC, and ZoneOffset.EAT which correspond to time zone ids representing Coordinated Universal Time, and East African Time respectively.

Source
ZoneOffset.scala
Example:
  1. import codes.reactive.scalatime._
    
    // Obtain the UTC zone
    val utcZone = ZoneOffset.UTC
    
    // Obtain the current system zone
    val systemZone = ZoneOffset.system
    
    // Obtain a time zone from the time offset of +5:00
    val plusFive = ZoneOffset(5)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ZoneOffset
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. val EAT: scalatime.ZoneOffset

    The time-zone offset representing EAT (Eastern Africa Time), with an offset of '+03:00'.

  5. val MAX: scalatime.ZoneOffset

    The time-zone offset representing the maximum supported offset.

  6. val MIN: scalatime.ZoneOffset

    The time-zone offset representing the minimum supported offset.

  7. val UTC: scalatime.ZoneOffset

    The time-zone offset representing UTC (Coordinated Universal Time), with an offset of '0'.

  8. def apply(offsetId: String): Try[scalatime.ZoneOffset]

    Tries to obtain a ZoneOffset from text.

    Tries to obtain a ZoneOffset from text. See Java API. for more detail.

    Note

    Returns Failure[DateTimeException] if the offset ID is invalid.

  9. def apply(hours: Int, minutes: Int, seconds: Int): Try[scalatime.ZoneOffset]

    Tries to obtains a ZoneOffset from an offset of hours (from 0 to ±18), minutes and seconds (both 0 to ±59).

  10. def apply(hours: Int, minutes: Int): Try[scalatime.ZoneOffset]

    Tries to obtain a ZoneOffset from an offset of hours (from 0 to ±18) and minutes (0 to ±59).

  11. def apply(hours: Int): Try[scalatime.ZoneOffset]

    Tries to obtain a ZoneOffset from an offset of hours - from 0 to ±18.

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

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

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

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

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

    Tries to query a Temporal instance to obtain its ZoneOffset.

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

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

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

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

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped