util::UTDate Class Reference

Representing UT as a wrapped time_t mother class. More...

Inherited by util::DCFDate, util::FitsDate, util::JulDate, util::LSTime, and util::UTTime.

List of all members.

Public Member Functions

Protected Member Functions

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.

Constructor & Destructor Documentation

util::UTDate::UTDate (  )  [inline]

Get actual UT (now).

util::UTDate::UTDate ( const time_t &  init_date  )  [inline]

Assume init_date to hold UT.


Member Function Documentation

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.


Member Data Documentation

time_t util::UTDate::ut_date_ [protected]

Referenced by util::JulDate::JulDate().


Generated on 19 Feb 2015 for LTL by  doxygen 1.6.1