public class CCSTimeStamp extends Object implements Serializable, Comparable<CCSTimeStamp>
The following system properties control how the class works:
| Property | Default | Description |
|---|---|---|
| org.lsst.ccs.utilities.taitime.useStrict | false | Controls whether strict mode is set or not |
| org.lsst.ccs.utilities.taitime.libName | timeaccess | The name of the JNI library to load |
| org.lsst.ccs.utilities.taitime.minLeapSeconds | 30 | The minimum number of leap seconds for the kernel to be considered configured correctly |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CCSTimeStamp o) |
static CCSTimeStamp |
currentTime()
Attempts to get the current timestamp.
|
static CCSTimeStamp |
currentTimeFromMillis(long milliseconds)
Deprecated.
|
boolean |
equals(Object obj) |
static CCSTimeStamp |
fromTAI(Instant taiTime,
int dtai)
Create an instance of CCSTimeStamp based on the current TAI time, and
the delta between TAI and UTC in effect at the time.
|
double |
getTAIDouble() |
Instant |
getTAIInstant() |
double |
getUTCDouble() |
Instant |
getUTCInstant() |
int |
hashCode() |
String |
toString() |
public static CCSTimeStamp currentTime()
RuntimeException - If the TAI time offset is not available.public static CCSTimeStamp fromTAI(Instant taiTime, int dtai)
taiTime - The TAI time, as an Instantdtai - The difference between TAI and UTC in seconds, at the tai instant given. See the definition
of dtai in leap-seconds.list.@Deprecated public static CCSTimeStamp currentTimeFromMillis(long milliseconds)
milliseconds - A standard Java milliseconds values (as returned by
System.currentTimeMills())public Instant getTAIInstant()
public Instant getUTCInstant()
public double getTAIDouble()
public double getUTCDouble()
public int compareTo(CCSTimeStamp o)
compareTo in interface Comparable<CCSTimeStamp>Copyright © 2023 LSST. All rights reserved.