Go to the documentation of this file.
44 #ifndef GEOMATICS_EPHTIME_HPP
45 #define GEOMATICS_EPHTIME_HPP
123 while (
dSOD >= 86400.0)
158 dSOD = (
mjd -
static_cast<double>(
iMJD)) * 86400.0;
173 return (
static_cast<double>(
iMJD) +
dSOD / 86400.);
217 iMJD =
static_cast<long>(ctmjd.
mjd);
254 std::ostringstream oss;
262 oss << wk <<
" " << std::fixed << std::setprecision(prec) << sow;
272 std::ostringstream oss;
276 oss <<
iMJD <<
" " << std::setfill(
'0') << std::setw(2) << hh <<
":"
277 << std::setw(2) << mm <<
":" << std::setfill(
' ') << std::fixed
278 << std::setprecision(prec) << sec;
288 #endif // GEOMATICS_EPHTIME_HPP
@ TT
Terrestrial time (used in IERS conventions)
EphTime()
empty constructor
void convertSystemTo(const TimeSystem &ts)
const long SEC_PER_DAY
Seconds per day.
std::string asGPSString(const int prec=2) const
void setTimeSystem(TimeSystem sys)
double dSOD
double seconds of day
const long FULLWEEK
Seconds per whole week.
@ Any
wildcard; allows comparison with any other type
CommonTime & setTimeSystem(TimeSystem timeSystem)
const long MJD_JDAY
'Julian day' offset from MJD
virtual void convertFromCommonTime(const CommonTime &ct)
@ Unknown
unknown time frame; for legacy code compatibility
@ Unknown
Unknown or uninitialized stategy value.
@ TDB
Barycentric dynamical time (JPL ephemeris); very near TT.
void convertJDtoCalendar(long jd, int &iyear, int &imonth, int &iday)
void convertSODtoTime(double sod, int &hh, int &mm, double &sec)
EphTime(const CommonTime &dt)
const long GPS_EPOCH_MJD
Modified Julian Date of GPS epoch (Jan. 6, 1980).
EphTime & operator+=(double seconds)
std::string asMJDString(const int prec=3) const
TimeSystem
Definition of various time systems.
TimeSystem system
time system, limited to Unknown, UTC, TT, TDB
#define GNSSTK_RETHROW(exc)
virtual void convertFromCommonTime(const CommonTime &ct)
@ UTC
Coordinated Universal Time (e.g., from NTP)
virtual CommonTime convertToCommonTime() const
TimeSystem getTimeSystem() const
Obtain time system info (enum).
#define GNSSTK_THROW(exc)
double getTimeSystemCorrection(const TimeSystem inTS, const TimeSystem outTS, const int year, const int month, const double day)
void setMJD(long double mjd)
EphTime(int imjd, double dsod, TimeSystem sys=TimeSystem::UTC)
constructor, input int mjd, seconds of day, and system
EphTime(double mjd, TimeSystem sys=TimeSystem::UTC)
constructor from full MJD and system
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39