public class UTCUtility
extends java.lang.Object
Note that Alma uses not only the Unix/Java time and OMG time that this class currently supports, but also "array time" which is a variant of VMS time: Nanoseconds since Nov 17, 1858. If we ever need to convert this to Java time, the formula is (jTime + 40587 * 86400000) * 1000000L with 40587 = number of days between 1858-11-17 and 1970-01-01 and 86400000 = milliseconds per day. See also ICD/HLA/ASDM :: ArrayTime.
| Constructor and Description |
|---|
UTCUtility() |
| Modifier and Type | Method and Description |
|---|---|
static long |
durationJavaMillisToOmg(long javaMillisDuration)
Converts a time duration (not time stamp!) given in milliseconds
to 100ns by multiplying it with 10000.
|
static java.lang.String |
getUTCDate(long jTime)
Converts the given java time ("short-epoch UTC", ms since Jan 01, 1970)
to a stringified format: "yyyy-MM-ddTHH:mm:ss.SSS"
|
static long |
utcJavaToOmg(long jTime)
Converts from Java time ("short-epoch UTC", ms since Jan 01, 1970)
to OMG time ("long-epoch UTC", 100-ns since Oct 15, 1582).
|
static long |
utcOmgToJava(long omgTime)
Converts from OMG time ("long-epoch UTC", 100-ns since Oct 15, 1582)
to Java time ("short-epoch UTC", ms since Jan 01, 1970).
|
public static long durationJavaMillisToOmg(long javaMillisDuration)
javaMillisDuration - public static long utcOmgToJava(long omgTime)
public static final long utcJavaToOmg(long jTime)
public static java.lang.String getUTCDate(long jTime)
IsoDateFormat.pattern