LTL
2.0.x
|
Convert from and to modified Julian date. More...
Inherits util::JulDate.
Public Member Functions | |
MJDate () | |
Get actual UT. More... | |
MJDate (const UTDate &d) | |
Initialise from util::UTDate or heirs. More... | |
MJDate (const double init_date) | |
Interpret double as Julian Date. More... | |
MJDate (const std::string &init_date) | |
Interpret string as Julian Date. More... | |
std::string | toString (const int prec=8) const |
Return Julian date string. More... | |
double | toDouble () const |
Return modified Julian date double. More... | |
std::string | toString () const |
Return UTC date string. More... | |
time_t | time () const |
get internal time_t More... | |
Protected Member Functions | |
char * | toCString () const |
time_t | mkuttime (struct tm *ut_tm) |
time_t | mkdcftime (struct tm *dcf_tm) |
Static Protected Member Functions | |
static timeval | toTime_tv (const double &init_date) |
static timeval | toTime_tv (const std::string &init_date) |
Protected Attributes | |
time_t & | ut_date_ |
suseconds_t & | ut_usec_ |
timeval | tv_date_ |
Static Protected Attributes | |
static const double | mjdate_on_epoch_ |
modified Julian date at Jan. 1st 1970, 0.00 More... | |
static const double | mjdate_end_epoch_ |
modified Julian date at Dec. 31st 2037, 24.00 More... | |
static const double | juldate_on_epoch_ |
Julian date at Jan. 1st 1970, 0.00. More... | |
static const double | seconds_of_day_ |
24 * 60 * 60 More... | |
static const double | juldate_end_epoch_ |
Julian date at Dec. 31st 2037, 24.00. More... | |
Convert from and to modified Julian date.
|
inline |
Get actual UT.
|
inline |
Initialise from util::UTDate or heirs.
|
inline |
Interpret double as Julian Date.
References toTime_tv(), and util::UTDate::tv_date_.
|
inline |
Interpret string as Julian Date.
References toTime_tv(), and util::UTDate::tv_date_.
|
staticprotected |
Referenced by MJDate().
|
staticprotected |
std::string util::MJDate::toString | ( | const int | prec = 8 | ) | const |
Return Julian date string.
double util::MJDate::toDouble | ( | ) | const |
Return modified Julian date double.
|
inherited |
Return UTC date string.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
get internal time_t
|
staticprotected |
modified Julian date at Jan. 1st 1970, 0.00
|
staticprotected |
modified Julian date at Dec. 31st 2037, 24.00
|
staticprotectedinherited |
Julian date at Jan. 1st 1970, 0.00.
|
staticprotectedinherited |
24 * 60 * 60
|
staticprotectedinherited |
Julian date at Dec. 31st 2037, 24.00.
|
protectedinherited |
Referenced by util::UTDate::UTDate().
|
protectedinherited |
Referenced by util::UTDate::UTDate().
|
protectedinherited |
Referenced by util::JulDate::JulDate(), MJDate(), and util::UTDate::UTDate().