

Static Public Member Functions | |
| static long | epochToJava (Epoch acsTime) |
| static final Epoch | javaToEpoch (long jTime) |
| static Epoch | getTimeStamp () |
| static String | getUTCDate () |
| static String | getUTCDate (Epoch acsTime) |
Converts native Java time to ALMA time units.
| static long alma::acs::time::TimeHelper::epochToJava | ( | Epoch | acsTime | ) | [inline, static] |
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).
References alma::acs::util::UTCUtility::utcOmgToJava(), and alma::acstime::Epoch::value.
Referenced by getUTCDate().
| static Epoch alma::acs::time::TimeHelper::getTimeStamp | ( | ) | [inline, static] |
Returns the current timestamp in ACS Epoch ("long-epoch UTC", 100-ns since Oct 15, 1582) format. To convert this value to a long, just use getTimeStamp().value
References javaToEpoch().
Referenced by getUTCDate().
| static String alma::acs::time::TimeHelper::getUTCDate | ( | Epoch | acsTime | ) | [inline, static] |
Converts the given ACS Epoch ("long-epoch UTC", 100-ns since Oct 15, 1582) to a stringified format: "yyyy-MM-ddTHH:mm:ss.SSS"
References epochToJava(), and getUTCDate().
| static String alma::acs::time::TimeHelper::getUTCDate | ( | ) | [inline, static] |
Returns the current UTC time in stringified format: "yyyy-MM-ddTHH:mm:ss.SSS"
References getTimeStamp().
Referenced by getUTCDate().
| static final Epoch alma::acs::time::TimeHelper::javaToEpoch | ( | long | jTime | ) | [inline, static] |
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).
References alma::acs::util::UTCUtility::utcJavaToOmg().
Referenced by getTimeStamp().
1.6.2