Representing UT as a wrapped time_t mother class. More...
Inherited by util::DCFDate, util::FitsDate, util::JulDate, util::LSTime, and util::UTTime.
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).
util::UTDateException | are thrown on error. |
util::UTDate::UTDate | ( | ) | [inline] |
Get actual UT (now).
util::UTDate::UTDate | ( | const time_t & | init_date | ) | [inline] |
Assume init_date to hold UT.
char* util::UTDate::toCString | ( | ) | const [protected] |
time_t util::UTDate::mkuttime | ( | struct tm * | ut_tm | ) | [protected] |
time_t util::UTDate::mkdcftime | ( | struct tm * | dcf_tm | ) | [protected] |
time_t util::UTDate::time | ( | ) | const |
get internal time_t
string util::UTDate::toString | ( | ) | const |
Return UTC date string.
Reimplemented in util::DCFDate, util::FitsDate, and util::UTTime.
time_t util::UTDate::ut_date_ [protected] |
Referenced by util::JulDate::JulDate().