Public Member Functions | Public Attributes

acstime::Clock Interface Reference

Inheritance diagram for acstime::Clock:
Inheritance graph
[legend]
Collaboration diagram for acstime::Clock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Duration getTimeInterval (in Epoch prevEpoch)
Epoch fromISO8601 (in TimeSystem ts, in string iso) raises (ACSTimeError::ArgErrorEx)
string toISO8601 (in TimeSystem ts, in Epoch timeValue) raises (ACSTimeError::ArgErrorEx)

Public Attributes

readonly attribute ACS::RWlong array2TAI
readonly attribute ACS::RWlong TAI2UTC
readonly attribute ACS::ROuLongLong now

Detailed Description

An interface to obtain the current time and provide some time conversion functions.

This interface is normally only used as a COLLOCATED object, and will normally be present on all machines, i.e. on both LCUs and general purpose workstations.


Member Function Documentation

Epoch acstime::Clock::fromISO8601 ( in TimeSystem  ts,
in string  iso 
) raises (ACSTimeError::ArgErrorEx)

Converts a string consisting of an epoch in ISO-8601 format to the 100ns ACS format.

Parameters:
ts The time system the string's representation is using.
iso time in ISO-8601 format
Returns:
String converted to an ACS Epoch
Duration acstime::Clock::getTimeInterval ( in Epoch  prevEpoch  ) 

Given another instance in time, this method returns the time interval between it and now().

Returns:
now() - prevEpoch
string acstime::Clock::toISO8601 ( in TimeSystem  ts,
in Epoch  timeValue 
) raises (ACSTimeError::ArgErrorEx)

Converts the 100ns ACS time format to a string in ISO-8601 format.

Parameters:
ts The time system the epoch is really using.
timeValue Epoch value to convert into a string.
Returns:
epoch converted to a string in ISO-8601 format

Member Data Documentation

Array Time to TAI Offset Property ($ 10^-7 $ second).

This Property gives the difference between Array Time (Internal ALMA Time) and TAI (International Atomic Time) in units of 100's of nanoseconds. This value can be either positive or negative, and will change slowly as the array time driven by the local oscillator (maser) drifts against TAI.

array2TAI Value = Array Time - TAI

DWF-this property should NOT be RW!

This property is simply the current time in standard ACS time format (i.e., an Epoch.value).

TAI to UTC Time Offset Property (second).

This Property gives the difference between TAI (International Atomic Time) and UTC (Universal Coordinate Time) in seconds. This value is always positive, and will change only when the UTC leap second changes. Normally leap seconds change only at midnight on June 30 and/or December 31.

TAI2UTC Value = TAI - UTC

DWF-this property should NOT be RW!


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