public class TimeHelper extends UTCUtility
| Constructor and Description |
|---|
TimeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static long |
epochToJava(Epoch acsTime)
Converts from an ACS Epoch ("long-epoch UTC", 100-ns since Oct 15, 1582)
to Java time ("short-epoch UTC", ms since Jan 01, 1970).
|
static Epoch |
getTimeStamp()
Returns the current timestamp in ACS Epoch ("long-epoch UTC", 100-ns
since Oct 15, 1582) format.
|
static java.lang.String |
getUTCDate()
Returns the current UTC time in stringified format: "yyyy-MM-ddTHH:mm:ss.SSS"
|
static java.lang.String |
getUTCDate(Epoch acsTime)
Converts the given ACS Epoch ("long-epoch UTC", 100-ns
since Oct 15, 1582) to a stringified format: "yyyy-MM-ddTHH:mm:ss.SSS"
|
static Epoch |
javaToEpoch(long jTime)
Converts from Java time ("short-epoch UTC", ms since Jan 01, 1970)
to an ACS epoch ("long-epoch UTC", 100-ns since Oct 15, 1582).
|
durationJavaMillisToOmg, getUTCDate, utcJavaToOmg, utcOmgToJavapublic static long epochToJava(Epoch acsTime)
public static final Epoch javaToEpoch(long jTime)
public static Epoch getTimeStamp()
public static java.lang.String getUTCDate()
public static java.lang.String getUTCDate(Epoch acsTime)