19 #ifndef HARDWARE_SAM_RTC_H 20 #define HARDWARE_SAM_RTC_H 54 #define ONE_DEGREE 3600 57 #define ONE_DAY 86400UL 60 #define UNIX_OFFSET 946684800UL 63 #define NTP_OFFSET 3155673600UL 69 #define isotime_r(tm,buf) (strftime (buf, 32, "%F %T", tm), buf) 78 #define set_zone(x) _timezone = x 79 #define get_zone() _timezone 100 uint32_t now = millis();
101 if (now -
m_millis < 1000)
return (
false);
volatile uint16_t m_millis
void get_time(struct tm &now)
time_t mktime(struct tm *timeptr)
struct tm * gmtime_r(const time_t *timer, struct tm *timeptr)
void set_time(struct tm &now)
void set_time(time_t time)