Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

List of all members.

Static Public Member Functions

long epochToJava (Epoch acsTime)
final Epoch javaToEpoch (long jTime)
Epoch getTimeStamp ()
String getUTCDate ()
String getUTCDate (Epoch acsTime)

Detailed Description

Converts native Java time to ALMA time units.

Author:
dfugate Sep 30, 2004


Member Function Documentation

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

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)

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

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

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)


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:54:34 2009 for ACS Java API by doxygen 1.3.8