Go to the documentation of this file.
58 long double temp_jd(
jd + 0.5 );
59 long jday(
static_cast<long>( temp_jd ) );
61 ( temp_jd -
static_cast<long double>( jday ) ) *
SEC_PER_DAY;
65 static_cast<long>(
sod ),
66 static_cast<double>(
sod -
static_cast<long>(
sod ) ),
69 catch (InvalidParameter& ip)
71 InvalidRequest ir(ip);
82 jd =
static_cast<long double>( jday ) +
83 (
static_cast<long double>(
sod )
93 std::string rv( fmt );
101 catch( gnsstk::StringUtils::StringException&
se )
112 std::string rv( fmt );
120 catch( gnsstk::StringUtils::StringException&
se )
130 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
185 return ( !
operator==( right ) );
195 gnsstk::InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
208 return ( !
operator<=( right ) );
213 return (
operator<( right ) ||
214 operator==( right ) );
219 return ( !
operator<( right ) );
bool operator>(const JulianDate &right) const
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 void convertFromCommonTime(const CommonTime &ct)
virtual CommonTime convertToCommonTime() const
virtual bool setFromInfo(const IdToValue &info)
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.
bool operator==(const JulianDate &right) const
@ Unknown
unknown time frame; for legacy code compatibility
virtual std::string printError(const std::string &fmt) const
bool operator<=(const JulianDate &right) const
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
bool operator!=(const JulianDate &right) const
void get(long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
#define GNSSTK_RETHROW(exc)
const double DAY_PER_SEC
Days per second.
virtual bool isValid() const
Returns true if this object's members are valid, false otherwise.
bool operator>=(const JulianDate &right) const
#define GNSSTK_THROW(exc)
virtual std::string printf(const std::string &fmt) const
JulianDate & operator=(const JulianDate &right)
bool operator<(const JulianDate &right) const
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)
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39