csw.time.core

package csw.time.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.

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

Attributes

Members list

Packages

Type members

Classlikes

object TMTTimeHelper

This API allows users to get a representation of csw.time.core.models.TMTTime in a specific Time Zone, returned as a java.time.ZonedDateTime.

This API allows users to get a representation of csw.time.core.models.TMTTime in a specific Time Zone, returned as a java.time.ZonedDateTime.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type