Universal Time Coordinated (UTC) clock definition
Synopsis:
#include <sensor/sensor_gps_imu.h>
typedef struct sensor_utc_time_t {
uint32_t year;
uint8_t month;
uint8_t day;
uint8_t hour;
uint8_t minute;
uint8_t second;
uint32_t nanosecond;
sensor_utc_status_t status;
} sensor_utc_time_t;
Data:
- uint32_t year
- UTC current year.
- uint8_t month
- UTC current month, from 1 to 12.
- uint8_t day
- UTC current day of the month, from 1 to 31.
- uint8_t hour
- UTC current hour in the day, from 0 to 23.
- uint8_t minute
- UTC current minute in the hour, from 0 to 59.
- uint8_t second
- UTC current second in the minute, from 0 to 60.
The maximum value of 60 is reached when the leap second is applied.
- uint32_t nanosecond
- UTC current nanosecond in the second, from 0 to 999999999.
- sensor_utc_status_t status
- UTC clock current status.
Library:
libsensor