LTL
2.0.x
|
Convert from and to Julian date. More...
Inherits util::UTDate.
Public Member Functions | |
JulDate () | |
Get actual UT. More... | |
JulDate (const UTDate &d) | |
Initialise from util::UTDate or heirs. More... | |
JulDate (const double init_date) | |
Interpret double as Julian Date. More... | |
JulDate (const string &init_date) | |
Interpret string as Julian Date. More... | |
string | toString (const int prec=8) const |
Return Julian date string. More... | |
double | toDouble () const |
Return Julian date double. More... | |
time_t | time () const |
get internal time_t More... | |
string | toString () const |
Return UTC date string. More... | |
Protected Member Functions | |
time_t | toTime_t (const double &init_date) const |
time_t | toTime_t (const string &init_date) const |
char * | toCString () const |
time_t | mkuttime (struct tm *ut_tm) |
time_t | mkdcftime (struct tm *dcf_tm) |
Protected Attributes | |
time_t | ut_date_ |
Static Protected Attributes | |
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 Julian date.
|
inline |
Get actual UT.
|
inline |
Initialise from util::UTDate or heirs.
|
inline |
Interpret double as Julian Date.
References toTime_t(), and util::UTDate::ut_date_.
|
inline |
Interpret string as Julian Date.
References toTime_t(), and util::UTDate::ut_date_.
|
protected |
string util::JulDate::toString | ( | const int | prec = 8 | ) | const |
Return Julian date string.
double util::JulDate::toDouble | ( | ) | const |
Return Julian date double.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
get internal time_t
|
inherited |
Return UTC date string.
|
staticprotected |
Julian date at Jan. 1st 1970, 0.00.
|
staticprotected |
24 * 60 * 60
|
staticprotected |
Julian date at Dec. 31st 2037, 24.00.
|
protectedinherited |
Referenced by JulDate().