util::UTDate Class Reference
Representing UT as a wrapped time_t mother class.
More...
#include <utdate.h>
Inheritance diagram for util::UTDate:
List of all members.Public Member Functions
-
UTDate ()
- Get actual UT (now).
-
UTDate (const time_t &init_date)
- Assume init_date to hold UT.
-
time_t time () const
- get internal time_t
-
string toString () const
- Return UTC date string.
Protected Member Functions
-
char * toCString () const
-
time_t mkuttime (struct tm *ut_tm)
-
time_t mkdcftime (struct tm *dcf_tm)
Protected Attributes
Detailed Description
Representing UT as a wrapped time_t mother class.
All output is UTC, don't get confused! The Time is kept in util::UTDate::ut_date_" and always is UTC. All constructors are built to get UTC.
This class works for times between Jan. 1st 1970 (start of time_t epoch) and Dec. 31st 2037 due to overrun of 4 byte time_t epoch (in Jan. 2038).
- Exceptions:
-
util::UTDateException | are thrown on error. |
The documentation for this class was generated from the following file:
Generated on Fri Dec 24 13:32:06 2004 for LTL by
1.3.4