Go to the documentation of this file.
68 static_cast<long>(
sod),
69 sod -
static_cast<long>(
sod),
72 catch (InvalidParameter& ip)
82 InvalidRequest ir(
"Unable to convert to Week/Second - before Epoch.");
92 week =
static_cast<int>( jday / 7 );
113 return ( Week::operator==(right) &&
119 return ( !
operator==( right ) );
124 if( Week::operator<(right) )
128 if( Week::operator>(right) )
141 return ( !
operator<=( right ) );
146 return (
operator<( right ) ||
operator==( right ) );
151 return ( !
operator<( right ) );
virtual CommonTime convertToCommonTime() const
Week & operator=(const Week &right)
Assignment Operator.
bool operator==(const WeekSecond &right) const
const long SEC_PER_DAY
Seconds per day.
virtual void convertFromCommonTime(const CommonTime &ct)
virtual bool isValid() const
Returns true if this object's members are valid, false otherwise.
bool operator>=(const WeekSecond &right) const
const long FULLWEEK
Seconds per whole week.
const long MJD_JDAY
'Julian day' offset from MJD
virtual void reset()
Reset this object to the default state.
virtual bool isValid() const
Returns true if this object's members are valid, false otherwise.
void get(long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
bool operator<(const WeekSecond &right) const
int week
Full week number.
#define GNSSTK_RETHROW(exc)
bool operator>(const WeekSecond &right) const
virtual long MJDEpoch(void) const =0
#define GNSSTK_THROW(exc)
virtual void reset()
Reset this object to the default state.
bool operator<=(const WeekSecond &right) const
WeekSecond & operator=(const WeekSecond &right)
bool operator!=(const WeekSecond &right) const
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:42