Packages

  • package root
    Definition Classes
    root
  • package csw
    Definition Classes
    root
  • package time
    Definition Classes
    csw
  • package core

    This module provides Time Service APIs to access time in Coordinated Universal Time (UTC) and International Atomic Time (TAI) time scales with up to nano second precision when available.

    This module provides Time Service APIs to access time in Coordinated Universal Time (UTC) and International Atomic Time (TAI) time scales with up to nano second precision when available.

    In order to access current UTC or TAI Time, one could use the TMTTime API.

    val utcTime: UTCTime = UTCTime.now() // gets current UTC time
    utcTime.toTAI // converts the given UTCTime instance to TAI timescale

    Similar APIs are available for TAI timescale.

    val taiTime: TAITime = TAITime.now() // gets current TAI time
    taiTime.toUTC // converts the given TAITime instance to UTC timescale
    Definition Classes
    time
  • package models
    Definition Classes
    core
  • TAITime
  • TMTTime
  • UTCTime

final case class UTCTime(value: Instant) extends TMTTime with Product with Serializable

Represents an instantaneous point in time in the UTC scale. Does not contain zone information. To represent this instance in various zones, use csw.time.core.TMTTimeHelper.

value

the underlying java.time.Instant

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UTCTime
  2. TMTTime
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UTCTime(value: Instant)

    value

    the underlying java.time.Instant

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. def durationFromNow: FiniteDuration
    Definition Classes
    TMTTime
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  12. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  13. def productElementNames: Iterator[String]
    Definition Classes
    Product
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toTAI: TAITime

    Converts the UTCTime to TAITime by adding the UTC-TAI offset.

    Converts the UTCTime to TAITime by adding the UTC-TAI offset. UTC-TAI offset is fetched by doing a native call to ntp_gettimex. It ensures to get the latest offset as updated by the PTP Grandmaster.

    returns

    TAI time at the given UTC time

  16. val value: Instant
    Definition Classes
    UTCTimeTMTTime
  17. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from TMTTime

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped