Go to the documentation of this file.
51 "January",
"February",
"March",
"April",
52 "May",
"June",
"July",
"August",
53 "September",
"October",
"November",
"December"
59 "err",
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
60 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
86 return ct.
set( jday,
static_cast<long>(
sod) ,
87 (
sod -
static_cast<long>(
sod)),
90 catch (InvalidParameter& ip)
92 InvalidRequest ir(ip);
116 std::string rv = fmt;
121 "yd",
static_cast<short>(
year % 100 ) );
135 "Su",
static_cast<short>(
second ) );
142 catch( gnsstk::StringUtils::StringException& exc )
153 std::string rv = fmt;
179 catch( gnsstk::StringUtils::StringException& exc )
189 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
205 if( i->second.length() > 2)
285 for (
unsigned i = 1; i <= 12; i++)
296 for (
unsigned i = 1; i <= 12; i++)
326 return ( !
operator==( right ) );
336 gnsstk::InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
390 return ( !
operator<=( right ) );
395 return (
operator<( right ) ||
operator==( right ) );
400 return ( !
operator<( right ) );
407 s << cit.
printf(
"%02m/%02d/%04Y %02H:%02M:%02S %P");
CivilTime & operator=(const CivilTime &right)
static int monthLong(const std::string &monStr)
long asInt(const std::string &s)
static const GNSSTK_EXPORT double eps
Default tolerance for time equality in days.
bool operator<=(const CivilTime &right) const
virtual std::string printError(const std::string &fmt) 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 char * MonthAbbrevNames[]
Short month names for converstion from numbers to strings.
virtual void convertFromCommonTime(const CommonTime &ct)
@ Unknown
unknown time frame; for legacy code compatibility
virtual CommonTime convertToCommonTime() const
void convertJDtoCalendar(long jd, int &iyear, int &imonth, int &iday)
static int monthAbbrev(const std::string &amonStr)
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
virtual std::string printf(const std::string &fmt) const
void convertSODtoTime(double sod, int &hh, int &mm, double &sec)
bool operator==(const CivilTime &right) const
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
void get(long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
double asDouble(const std::string &s)
#define GNSSTK_RETHROW(exc)
bool operator!=(const CivilTime &right) const
virtual bool isValid() const
Returns true if this object's members are valid, false otherwise.
virtual void reset()
Reset this object to the default state.
bool operator<(const CivilTime &right) const
bool operator>=(const CivilTime &right) const
bool operator>(const CivilTime &right) const
#define GNSSTK_THROW(exc)
long convertCalendarToJD(int yy, int mm, int dd)
double convertTimeToSOD(int hh, int mm, double sec)
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
static const char * MonthNames[]
Long month names for converstion from numbers to strings.
virtual bool setFromInfo(const IdToValue &info)
std::string & lowerCase(std::string &s)
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