mbgtools-lx
4.2.8
|
Local date and time computed from GPS time. More...
#include <gpsdefs.h>
Data Fields | |
int16_t | year |
year number, 0..9999 More... | |
int8_t | month |
month, 1..12 More... | |
int8_t | mday |
day of month, 1..31 More... | |
int16_t | yday |
day of year, 1..365, or 366 in case of leap year More... | |
int8_t | wday |
day of week, 0..6 == Sun..Sat More... | |
int8_t | hour |
hours, 0..23 More... | |
int8_t | min |
minutes, 0..59 More... | |
int8_t | sec |
seconds, 0..59, or 60 in case of inserted leap second More... | |
int32_t | frac |
fractions of a second, 1/RECEIVER_INFO::ticks_per_sec units More... | |
int32_t | offs_from_utc |
local time offset from UTC [sec] More... | |
uint16_t | status |
status flags, see TM_GPS_STATUS_BIT_MASKS More... | |
Local date and time computed from GPS time.
The current number of leap seconds have to be added to get UTC from GPS time. Additional corrections could have been made according to the time zone/daylight saving parameters TZDL defined by the user. The status field can be checked to see which corrections have actually been applied.
int32_t TM_GPS::frac |
fractions of a second, 1/RECEIVER_INFO::ticks_per_sec units
Definition at line 2603 of file gpsdefs.h.
Referenced by nano_time_64_to_tm_gps(), pcps_str_tm_gps_date_time(), set_date_time(), and show_gps_ucap().
int8_t TM_GPS::hour |
hours, 0..23
Definition at line 2600 of file gpsdefs.h.
Referenced by mbg_str_tm_gps_date_time(), nano_time_64_to_tm_gps(), pcps_str_tm_gps_date_time(), set_date_time(), show_gps_ucap(), and tm_gps_to_nano_time_64().
int8_t TM_GPS::mday |
day of month, 1..31
Definition at line 2597 of file gpsdefs.h.
Referenced by mbg_str_tm_gps_date_time(), nano_time_64_to_tm_gps(), pcps_str_tm_gps_date_time(), set_date_time(), show_gps_ucap(), and tm_gps_to_nano_time_64().
int8_t TM_GPS::min |
minutes, 0..59
Definition at line 2601 of file gpsdefs.h.
Referenced by mbg_str_tm_gps_date_time(), nano_time_64_to_tm_gps(), pcps_str_tm_gps_date_time(), set_date_time(), show_gps_ucap(), and tm_gps_to_nano_time_64().
int8_t TM_GPS::month |
month, 1..12
Definition at line 2596 of file gpsdefs.h.
Referenced by mbg_str_tm_gps_date_time(), nano_time_64_to_tm_gps(), pcps_str_tm_gps_date_time(), set_date_time(), show_gps_ucap(), and tm_gps_to_nano_time_64().
int32_t TM_GPS::offs_from_utc |
local time offset from UTC [sec]
Definition at line 2604 of file gpsdefs.h.
Referenced by nano_time_64_to_tm_gps(), set_date_time(), and show_time_and_status().
int8_t TM_GPS::sec |
seconds, 0..59, or 60 in case of inserted leap second
Definition at line 2602 of file gpsdefs.h.
Referenced by mbg_get_all_ucap_info(), mbg_str_tm_gps_date_time(), nano_time_64_to_tm_gps(), pcps_str_tm_gps_date_time(), set_date_time(), show_gps_ucap(), and tm_gps_to_nano_time_64().
uint16_t TM_GPS::status |
status flags, see TM_GPS_STATUS_BIT_MASKS
Definition at line 2605 of file gpsdefs.h.
Referenced by set_date_time(), show_gps_ucap(), and show_time_and_status().
int8_t TM_GPS::wday |
day of week, 0..6 == Sun..Sat
Definition at line 2599 of file gpsdefs.h.
Referenced by nano_time_64_to_tm_gps(), and pcps_str_tm_gps_date_time().
int16_t TM_GPS::yday |
day of year, 1..365, or 366 in case of leap year
Definition at line 2598 of file gpsdefs.h.
Referenced by nano_time_64_to_tm_gps().
int16_t TM_GPS::year |
year number, 0..9999
Definition at line 2595 of file gpsdefs.h.
Referenced by mbg_str_tm_gps_date_time(), nano_time_64_to_tm_gps(), pcps_str_tm_gps_date_time(), set_date_time(), show_gps_ucap(), and tm_gps_to_nano_time_64().