Package csw.time.core.models
Class UTCTime$
- java.lang.Object
-
- csw.time.core.models.UTCTime$
-
- All Implemented Interfaces:
java.io.Serializable,scala.Serializable
public class UTCTime$ extends java.lang.Object implements scala.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UTCTime$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UTCTimenow()Obtains the PTP (Precision Time Protocol) synchronized current UTC time.play.api.libs.json.Format<UTCTime>utcTimeFormat(play.api.libs.json.Format<java.time.Instant> instantFormat)
-
-
-
Field Detail
-
MODULE$
public static final UTCTime$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
utcTimeFormat
public play.api.libs.json.Format<UTCTime> utcTimeFormat(play.api.libs.json.Format<java.time.Instant> instantFormat)
-
now
public UTCTime now()
Obtains the PTP (Precision Time Protocol) synchronized current UTC time. In case of a Linux machine, this will make a native callclock_gettimeinorder to get time from the system clock with nanosecond precision. In case of all the other operating systems, nanosecond precision is not supported, hence no native call is made.- Returns:
- current time in UTC scale
-
-