Go to the documentation of this file.
39 #ifndef GNSSTK_CIVILTIME_HPP
40 #define GNSSTK_CIVILTIME_HPP
135 virtual std::string
printf(
const std::string& fmt)
const;
139 virtual std::string
printError(
const std::string& fmt)
const;
153 return "YymbBdHMSfP";
159 return "%02m/%02d/%04Y %02H:%02M:%02S %P";
164 virtual void reset();
170 static int monthAbbrev(
const std::string& amonStr);
176 static int monthLong(
const std::string& monStr);
221 #endif // GNSSTK_CIVILTIME_HPP
CivilTime & operator=(const CivilTime &right)
static int monthLong(const std::string &monStr)
bool operator<=(const CivilTime &right) const
virtual std::string printError(const std::string &fmt) const
static const char * MonthAbbrevNames[]
Short month names for converstion from numbers to strings.
CivilTime(const TimeTag &right)
std::ostream & operator<<(std::ostream &s, const gnsstk::CivilTime &cit)
virtual void convertFromCommonTime(const CommonTime &ct)
@ Unknown
unknown time frame; for legacy code compatibility
virtual ~CivilTime()
Virtual Destructor.
virtual CommonTime convertToCommonTime() const
static int monthAbbrev(const std::string &amonStr)
virtual std::string printf(const std::string &fmt) const
bool operator==(const CivilTime &right) const
TimeSystem
Definition of various time systems.
CivilTime(int yr=0, int mo=0, int dy=0, int hr=0, int mn=0, double s=0.0, const TimeSystem &ts=TimeSystem::Unknown)
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
virtual std::string getDefaultFormat() const
Return a string containing the default format to use in printing.
bool operator>=(const CivilTime &right) const
CivilTime(const CivilTime &right)
CivilTime(const CommonTime &right)
bool operator>(const CivilTime &right) const
virtual std::string getPrintChars() const
static const char * MonthNames[]
Long month names for converstion from numbers to strings.
virtual bool setFromInfo(const IdToValue &info)
double getUTHour() const
Get the "universal time"-esque fractional hour of day.
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38