Go to the documentation of this file.
61 long jday(
static_cast<long>( tmp ) );
63 tmp -=
static_cast<long>( tmp );
68 double dTmp(
static_cast<double>( tmp ) );
72 static_cast<long>( dTmp ),
73 dTmp -
static_cast<long>( dTmp ),
76 catch (InvalidParameter& ip)
78 InvalidRequest ir(ip);
91 (
static_cast<long double>(
sod )
100 std::string rv( fmt );
108 catch( gnsstk::StringUtils::StringException&
se )
119 std::string rv( fmt );
127 catch( gnsstk::StringUtils::StringException&
se )
137 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
192 return ( !
operator==( right ) );
202 gnsstk::InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
215 return ( !
operator<=( right ) );
220 return (
operator<( right ) ||
221 operator==( right ) );
226 return ( !
operator<( right ) );
double se
obliquity cos, T*cos, sin coefficients
static const GNSSTK_EXPORT double eps
Default tolerance for time equality in days.
virtual void reset()
Reset this object to the default state.
virtual std::string printError(const std::string &fmt) const
const long SEC_PER_DAY
Seconds per day.
long double asLongDouble(const std::string &s)
@ Any
wildcard; allows comparison with any other type
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
virtual bool setFromInfo(const IdToValue &info)
const long MJD_JDAY
'Julian day' offset from MJD
bool operator!=(const MJD &right) const
bool operator<=(const MJD &right) const
@ Unknown
unknown time frame; for legacy code compatibility
bool operator<(const MJD &right) const
bool operator==(const MJD &right) const
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
MJD & operator=(const MJD &right)
void get(long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
virtual bool isValid() const
Returns true if this object's members are valid, false otherwise.
#define GNSSTK_RETHROW(exc)
virtual void convertFromCommonTime(const CommonTime &ct)
virtual CommonTime convertToCommonTime() const
bool operator>=(const MJD &right) const
const double DAY_PER_SEC
Days per second.
virtual std::string printf(const std::string &fmt) const
#define GNSSTK_THROW(exc)
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
CommonTime & set(long day, long sod, double fsod=0.0, TimeSystem timeSystem=TimeSystem::Unknown)
bool operator>(const MJD &right) const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:40