codes.reactive.scalatime

ZoneId

object ZoneId

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

In addition to factory methods, ZoneId.entries obtains a Set of all currently available region based zone ids.

Source
ZoneId.scala
Example:
  1. import codes.reactive.scalatime._
    
    // Obtain the UTC zone
    val utcZone = ZoneId.UTC
    
    // Obtain the current system zone
    val systemZone = ZoneId.system
    
    // Obtain a time zone from the region zone id 'Europe/Lisbon'
    val lisbonZone = ZoneId("Europe/Lisbon")
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ZoneId
  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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. val EAT: scalatime.ZoneId

    The time-zone ID representing EAT (Eastern Africa Time), with an ID of 'Africa/Nairobi'.

  7. val UTC: scalatime.ZoneId

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

  8. def apply(prefix: String, offset: scalatime.ZoneOffset): Try[scalatime.ZoneId]

    Tries to obtain a ZoneId wrapping an offset.

    Tries to obtain a ZoneId wrapping an offset. If the prefix is "GMT", "UTC", or "UT" a ZoneId with the prefix and the non-zero offset is returned. If the prefix is empty "" the ZoneOffset is returned.

  9. def apply(zoneId: String, aliasMap: Map[String, String]): Try[scalatime.ZoneId]

    Similar to apply(zone: String), but allows supplementing the existing ZoneIds with a Map of aliases to real zone IDs.

  10. def apply(zone: String): Try[scalatime.ZoneId]

    Tries to obtains a ZoneId or ZoneOffset from text.

    Tries to obtains a ZoneId or ZoneOffset from text. A ZoneOffset is returned if the text is 'Z', or starts with '+' or '-'. If successful, the result will always be a valid ID for which ZoneRules can be obtained.

    zone

    the time-zone ID

    Note

    will return Failure[ZoneRulesException] if the converted zone region ID cannot be found.

    ,

    will return Failure[DateTimeException] if the converted zone ID has an invalid format.

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def entries: Set[String]

    Obtains a scala.collection.immutable.Set of the text form of all currently available region based zone IDs.

  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.ZoneId]

    Tries to query a Temporal instance to obtain its ZoneId.

  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 system: Try[scalatime.ZoneId]

    Tries to query TimeZone.

    Tries to query TimeZone.getDefault() to find the current default time-zone and convert it to a ZoneId.

    Note

    will return Failure[ZoneRulesException] if the converted zone region ID cannot be found.

    ,

    will return Failure[DateTimeException] if the converted zone ID has an invalid format.

  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped