Class implementing date+time, only in formats applicable solar system ephemeris and earth orientation, namely UTC, TT and TDB. Conversion to and from CommonTime is implicit through casts defined here.
Definition at line 67 of file EphTime.hpp.
#include <EphTime.hpp>
Public Member Functions | |
std::string | asGPSString (const int prec=2) const |
std::string | asMJDString (const int prec=3) const |
void | convertSystemTo (const TimeSystem &ts) |
double | dMJD () const |
EphTime () | |
empty constructor More... | |
EphTime (const CommonTime &dt) | |
EphTime (double mjd, TimeSystem sys=TimeSystem::UTC) | |
constructor from full MJD and system More... | |
EphTime (int imjd, double dsod, TimeSystem sys=TimeSystem::UTC) | |
constructor, input int mjd, seconds of day, and system More... | |
long | lMJD () const |
operator CommonTime () | |
non-const cast EphTime to CommonTime More... | |
operator CommonTime () const | |
const cast EphTime to CommonTime More... | |
EphTime & | operator+= (double seconds) |
double | secOfDay () const |
void | setMJD (long double mjd) |
void | setTimeSystem (TimeSystem sys) |
int | year () const |
Private Attributes | |
double | dSOD |
double seconds of day More... | |
long | iMJD |
integer MJD More... | |
TimeSystem | system |
time system, limited to Unknown, UTC, TT, TDB More... | |
|
inline |
empty constructor
Definition at line 76 of file EphTime.hpp.
|
inline |
constructor, input int mjd, seconds of day, and system
Definition at line 79 of file EphTime.hpp.
|
inline |
constructor from full MJD and system
Definition at line 85 of file EphTime.hpp.
|
inline |
constructor from CommonTime; convert to UTC if system is not UTC|TT|TDB, and change Unknown to UTC.
dt | CommonTime input |
Exception | if convertSystemTo does, if input system is Unknown |
Definition at line 194 of file EphTime.hpp.
|
inline |
return string of form Week sow.sss
prec | precision in fixed float output |
Definition at line 252 of file EphTime.hpp.
|
inline |
return string of form MJD HH:MM:SS.ss
prec | precision in fixed float output |
Definition at line 270 of file EphTime.hpp.
|
inline |
convert systems
ts | TimeSystem to be converted to |
Exception | if Correction does, if input system is Unknown |
Definition at line 96 of file EphTime.hpp.
|
inline |
|
inline |
|
inline |
non-const cast EphTime to CommonTime
Definition at line 239 of file EphTime.hpp.
|
inline |
const cast EphTime to CommonTime
Definition at line 228 of file EphTime.hpp.
|
inline |
add seconds to this EphTime
seconds | double seconds to add |
Definition at line 120 of file EphTime.hpp.
|
inline |
Definition at line 177 of file EphTime.hpp.
|
inline |
|
inline |
set the TimeSystem
sys | desired TimeSystem |
Exception | if it is not allowed (one of UTC TT TBD) |
Definition at line 141 of file EphTime.hpp.
|
inline |
Definition at line 180 of file EphTime.hpp.
|
private |
double seconds of day
Definition at line 71 of file EphTime.hpp.
|
private |
integer MJD
Definition at line 70 of file EphTime.hpp.
|
private |
time system, limited to Unknown, UTC, TT, TDB
Definition at line 72 of file EphTime.hpp.