1 #ifndef UBLOX_GPS_UTILS_H 2 #define UBLOX_GPS_UTILS_H 6 #include "ublox_msgs/NavPVT.h" 15 template<
typename NavPVT>
19 time.tm_year = msg.year - 1900;
20 time.tm_mon = msg.month - 1;
21 time.tm_mday = msg.day;
22 time.tm_hour = msg.hour;
23 time.tm_min = msg.min;
24 time.tm_sec = msg.sec;
long toUtcSeconds(const NavPVT &msg)
Convert date/time to UTC time in seconds.
time_t mkgmtime(struct tm *const tmp)
Get the UTC time in seconds and nano-seconds from a time struct in GM time.