Go to the documentation of this file.
6 #include <gnsstk/CommonTime.hpp>
7 #include <gnsstk/YDSTime.hpp>
24 time.get(days, secs, frac);
32 commonTime.
get(days, secs, frac);
35 const auto timeSecs = daysSecs + secs;
38 if (timeSecs < std::numeric_limits<SecType>::min() || timeSecs > std::numeric_limits<SecType>::max())
39 throw std::runtime_error(
"Duration is out of dual 32-bit range");
CommonTime & addSeconds(double seconds)
static const Duration DAY
gnsstk::Position convert(const geographic_msgs::GeoPoint &position)
Convert the ROS GeoPoint message to gnsstk Position with Geodetic type.
static const long gnsstkDaysOffset
Number of days between CommonTime beginning of time and UNIX epoch start.
long getDays(const gnsstk::CommonTime &time)
Get the number of days stored in the given time object.
void get(long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
virtual CommonTime convertToCommonTime() const
static const gnsstk::CommonTime gnsstkCommonTime
CommonTime & addDays(long days)
gnsstk_ros
Author(s): Martin Pecka
autogenerated on Fri Nov 24 2023 03:50:23