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

acsutilTimeStamp.h File Reference

#include <acscommonC.h>
#include <SString.h>
#include <OS_NS_time.h>

Include dependency graph for acsutilTimeStamp.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

ACS::Time getTimeStamp ()
ACS::TimeInterval getTime ()
ACE_CString getStringifiedTimeStamp ()
ACE_Time_Value UTCtoACE_Time_Value (const ACS::Time &time)
ACE_CString getStringifiedUTC (ACS::TimeInterval time)

Variables

const CORBA::ULongLong UTCtoUNIXTimeBaseOffset = ACE_UINT64_LITERAL(0x2D8539C80)


Detailed Description

Header file for rudimentary time helper functions.

Function Documentation

ACE_CString getStringifiedTimeStamp  ) 
 

Get current time in ISO8601 format

Returns:
current time in ISO8601 format

ACE_CString getStringifiedUTC ACS::TimeInterval  time  )  [inline]
 

Returns UTC time in the ISO8601 format

Returns:
UTC time in the ISO8601 format

ACS::TimeInterval getTime  ) 
 

Get current time in UTC format Should be used only as relative time, this is NOT in UTC format (for performance)

Returns:
current time in UTC format

ACS::Time getTimeStamp  ) 
 

Get current time in UTC format

Returns:
current time in UTC format

ACE_Time_Value UTCtoACE_Time_Value const ACS::Time &  time  )  [inline]
 


Variable Documentation

const CORBA::ULongLong UTCtoUNIXTimeBaseOffset = ACE_UINT64_LITERAL(0x2D8539C80) [static]
 

To construct the UTC time from UNIX time we need to add the difference of days between 15th October 1582 and 1st Jan 1970. This difference is 141427 days or 0x2D8539C80 secs.


Generated on Thu Apr 30 02:32:52 2009 for ACS C++ API by doxygen 1.3.8