Go to the documentation of this file.
69 catch ( InvalidParameter& ip )
71 InvalidRequest ir(ip);
78 long jday = 0, secDay = 0;
81 sod =
static_cast<double>( secDay ) + fsecDay;
98 "yd",
static_cast<short>(
year % 100) );
107 catch( gnsstk::StringUtils::StringException& exc)
118 std::string rv = fmt;
132 catch( gnsstk::StringUtils::StringException& exc)
142 for( IdToValue::const_iterator i = info.begin();
143 i != info.end(); i++ )
159 if( i->second.length() > 2)
226 return ( !
operator==( right ) );
236 gnsstk::InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
265 return ( !
operator<=( right ) );
270 return (
operator<( right ) ||
operator==( right ) );
275 return ( !
operator<( right ) );
283 s << yt.
printf(
"%04Y/%03j %s %P");
virtual void convertFromCommonTime(const CommonTime &ct)
long asInt(const std::string &s)
virtual std::string printError(const std::string &fmt) const
static const GNSSTK_EXPORT double eps
Default tolerance for time equality in days.
bool operator==(const YDSTime &right) const
virtual void reset()
Reset this object to the default state.
bool operator>=(const YDSTime &right) const
@ Any
wildcard; allows comparison with any other type
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
static const GNSSTK_EXPORT CommonTime BEGINNING_OF_TIME
earliest representable CommonTime
@ Unknown
unknown time frame; for legacy code compatibility
virtual bool isValid() const
Returns true if this object's members are valid, false otherwise.
YDSTime & operator=(const YDSTime &right)
void convertJDtoCalendar(long jd, int &iyear, int &imonth, int &iday)
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
static const GNSSTK_EXPORT YDSTime BEGIN_TIME
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
bool operator<(const YDSTime &right) const
virtual bool setFromInfo(const IdToValue &info)
void get(long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
double asDouble(const std::string &s)
#define GNSSTK_RETHROW(exc)
virtual CommonTime convertToCommonTime() const
bool operator<=(const YDSTime &right) const
#define GNSSTK_THROW(exc)
long convertCalendarToJD(int yy, int mm, int dd)
bool operator>(const YDSTime &right) const
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
bool operator!=(const YDSTime &right) const
CommonTime & set(long day, long sod, double fsod=0.0, TimeSystem timeSystem=TimeSystem::Unknown)
virtual std::string printf(const std::string &fmt) const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:42