public class CCSTimeStamp extends Object implements Serializable
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 |
|---|---|
static CCSTimeStamp |
currentTime()
Attempts to get the current timestamp.
|
static CCSTimeStamp |
currentTimeFromMillis(long milliseconds)
Attempts to create a CCSTimeStamp from a utc milliseconds value.
|
boolean |
equals(Object obj) |
double |
getTAIDouble() |
Instant |
getTAIInstant() |
double |
getUTCDouble() |
Instant |
getUTCInstant() |
int |
hashCode() |
public static CCSTimeStamp currentTime()
RuntimeException - If the TAI time offset is not available.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()
Copyright © 2019 LSST. All rights reserved.