I have an I2C Real Time Clock, DS3231 RTC module , and I just want something like Unix Time.I'm using the uRTCLib, looking at theclass methodsbut dont see anything like that. I'm thinking there must be a raw read that would return all the digits. Is there an easy way to do that?
1 Answer1
The DS3231 doesn't report the Unix time. It reports the current time inbroken-down form (year, month... second). If you need Unix time, youhave to compute it.
I suggest using Adafruit'sRTClib. This library implements thecomputation of Unix time, e.g.
uint32_t unix_time = rtc.now().unixtime();Explore related questions
See similar questions with these tags.


