alma::acs::time::TimeHelper Class Reference

Inheritance diagram for alma::acs::time::TimeHelper:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::time::TimeHelper:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Converts native Java time to ALMA time units.

Author:
dfugate Sep 30, 2004

Member Function Documentation

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).

Returns:
time in milliseconds since Jan 01, 1970 00:00:00

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

Returns:
current ACS Epoch (in 100-nanoseconds since Oct 15, 1582 00:00:00)

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"

Returns:
present date/time in UTC format

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"

Returns:
present date/time in UTC format

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).

Returns:
ACS Epoch (in 100-nanoseconds since Oct 15, 1582 00:00:00)

References alma::acs::util::UTCUtility::utcJavaToOmg().

Referenced by getTimeStamp().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2