Closed jacky4566 closed 5 years ago
Hey Grumpy, Having a small problem with the RTC library for this core. The epoch stuff seems to be a bit off.
#include <RTC.h> void setup() { Serial.begin(9600); delay(2000); RTC.setEpoch(1565734851); Serial.println(RTC.getEpoch()); RTC.setYear(2019); Serial.println(RTC.getEpoch()); }
Will print this
1565734851 3080499651
Not sure why setting the year causes such confusion.
AH nevermind! The Year function is expecting the last 2 digits from 2000 onwards not the whole year.
Hey Grumpy, Having a small problem with the RTC library for this core. The epoch stuff seems to be a bit off.
Will print this
Not sure why setting the year causes such confusion.