Go to the documentation of this file.
39 #ifndef GNSSTK_COMMONTIME_HPP
40 #define GNSSTK_COMMONTIME_HPP
42 #include "gnsstk_export.h"
107 GNSSTK_EXPORT
static const double eps;
121 {
set( 0, 0, 0.0, timeSystem ); }
235 double& fsod )
const;
268 void get(
double&
day )
const;
406 GNSSTK_EXPORT
static std::shared_ptr<TimeSystemConverter>
tsConv;
451 #endif // GNSSTK_COMMONTIME_HPP
bool operator<(const CommonTime &right) const
static const GNSSTK_EXPORT double eps
Default tolerance for time equality in days.
CommonTime & addSeconds(double seconds)
bool add(long days, long msod, double fsod)
CommonTime & setInternal(long day=0, long msod=0, double fsod=0.0, TimeSystem timeSys=TimeSystem::Unknown)
CommonTime(long day, long sod, double fsod, TimeSystem timeSystem=TimeSystem::Unknown)
static GNSSTK_EXPORT std::shared_ptr< TimeSystemConverter > tsConv
static const GNSSTK_EXPORT long BEGIN_LIMIT_JDAY
bool operator>=(const CommonTime &right) const
long m_msod
milliseconds-of-day 0 <= val < 86400000
CommonTime & setTimeSystem(TimeSystem timeSystem)
bool operator!=(const CommonTime &right) const
static const GNSSTK_EXPORT CommonTime BEGINNING_OF_TIME
earliest representable CommonTime
CommonTime(TimeSystem timeSystem=TimeSystem::Unknown)
virtual ~CommonTime()
Destructor.
@ Unknown
unknown time frame; for legacy code compatibility
CommonTime & operator-=(double seconds)
void getInternal(long &day, long &msod, double &fsod, TimeSystem &timeSystem) const
double getSecondOfDay() const
Obtain the seconds of day (ignoring the day).
CommonTime & operator+=(double seconds)
static const GNSSTK_EXPORT CommonTime END_OF_TIME
latest representable CommonTime
bool operator==(const CommonTime &right) const
double getDays() const
Obtain the time, in days, including the fraction of a day.
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
TimeSystem
Definition of various time systems.
bool operator<=(const CommonTime &right) const
void get(long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
static const GNSSTK_EXPORT long END_LIMIT_JDAY
TimeSystem m_timeSystem
time frame (system representation) of the data
TimeSystem getTimeSystem() const
Obtain time system info (enum).
CommonTime & addMilliseconds(long ms)
double m_fsod
fractional seconds-of-day 0 <= val < 0.001
CommonTime operator+(double seconds) const
double operator-(const CommonTime &right) const
bool changeTimeSystem(TimeSystem timeSystem, TimeSystemConverter *conv)
void getInternal(long &day, long &msod, double &fsod) const
CommonTime & operator=(const CommonTime &right)
std::string asString() const
CommonTime & addDays(long days)
bool operator>(const CommonTime &right) const
CommonTime & set(long day, long sod, double fsod=0.0, TimeSystem timeSystem=TimeSystem::Unknown)
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38