Fixed braindead style, added a 2038+ compatible timestamp
All checks were successful
Compile / Compile (push) Successful in 1m22s
All checks were successful
Compile / Compile (push) Successful in 1m22s
This commit is contained in:
parent
5993fda85e
commit
67ff091775
2 changed files with 521 additions and 444 deletions
File diff suppressed because it is too large
Load diff
|
@ -102,7 +102,8 @@
|
||||||
|
|
||||||
/* date format flags */
|
/* date format flags */
|
||||||
#define RTCC_DATE_WORLD 0x01
|
#define RTCC_DATE_WORLD 0x01
|
||||||
#define RTCC_DATE_ASIA 0x02
|
#define RTCC_DATE_ISO8601 0x02
|
||||||
|
#define RTCC_DATE_ASIA 0x02 // It's not "asian", it's ISO8601, that anybody with any sense uses
|
||||||
#define RTCC_DATE_US 0x04
|
#define RTCC_DATE_US 0x04
|
||||||
/* time format flags */
|
/* time format flags */
|
||||||
#define RTCC_TIME_HMS 0x01
|
#define RTCC_TIME_HMS 0x01
|
||||||
|
@ -198,6 +199,7 @@ class Rtc_Pcf8563 {
|
||||||
byte getTimerValue();
|
byte getTimerValue();
|
||||||
|
|
||||||
unsigned long getTimestamp(); // return unix timestamp
|
unsigned long getTimestamp(); // return unix timestamp
|
||||||
|
uint64_t getTimestamp64(); // Fixed for 2038+
|
||||||
|
|
||||||
// Sets date/time to static fixed values, disable all alarms
|
// Sets date/time to static fixed values, disable all alarms
|
||||||
// use zeroClock() above to guarantee lowest possible values instead.
|
// use zeroClock() above to guarantee lowest possible values instead.
|
||||||
|
|
Loading…
Reference in a new issue