Static Public Member Functions

alma.acs.util.UTCUtility Class Reference

List of all members.

Static Public Member Functions

static long durationJavaMillisToOmg (long javaMillisDuration)
static long utcOmgToJava (long omgTime)
static final long utcJavaToOmg (long jTime)
static String getUTCDate (long jTime)

Detailed Description

Converts UTC times of different epochs

Author:
hsommer Jul 8, 2003 2:50:08 PM

Member Function Documentation

static long alma.acs.util.UTCUtility.durationJavaMillisToOmg ( long  javaMillisDuration  )  [static]

Converts a time duration (not time stamp!) given in milliseconds to 100ns by multiplying it with 10000.

Parameters:
javaMillisDuration 
Returns:
The duration in Corba-style 100-ns units.
static String alma.acs.util.UTCUtility.getUTCDate ( long  jTime  )  [static]

Converts the given java time ("short-epoch UTC", ms since Jan 01, 1970) to a stringified format: "yyyy-MM-ddTHH:mm:ss.SSS"

Returns:
given date/time in UTC format
See also:
IsoDateFormat.pattern
static final long alma.acs.util.UTCUtility.utcJavaToOmg ( long  jTime  )  [static]

Converts from Java time ("short-epoch UTC", ms since Jan 01, 1970) to OMG time ("long-epoch UTC", 100-ns since Oct 15, 1582).

Returns:
time in 100-nanoseconds since Oct 15, 1582 00:00:00
static long alma.acs.util.UTCUtility.utcOmgToJava ( long  omgTime  )  [static]

Converts from OMG time ("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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties