9 static const char *
const TAG =
"gps.time";
12 if (!tiny_gps.time.isValid() || !tiny_gps.date.isValid())
14 if (!tiny_gps.time.isUpdated() || !tiny_gps.date.isUpdated())
16 if (tiny_gps.date.year() < 2019)
20 val.year = tiny_gps.date.year();
21 val.month = tiny_gps.date.month();
22 val.day_of_month = tiny_gps.date.day();
27 val.hour = tiny_gps.time.hour();
28 val.minute = tiny_gps.time.minute();
29 val.second = tiny_gps.time.second();
30 val.recalc_timestamp_utc(
false);
void from_tiny_gps_(TinyGPSPlus &tiny_gps)
A more user-friendly version of struct tm from time.h.
Implementation of SPI Controller mode.
void synchronize_epoch_(uint32_t epoch)
Report a unix epoch as current time.