mongoose-os-libs / arduino-ds3231

Arduino DS3231 library for Mongoose OS
https://mongoose-os.com
Other
1 stars 3 forks source link

Setting RTC from epoch #3

Open tripflex opened 6 years ago

tripflex commented 6 years ago

Would it be possible to add epoch handling for this library? SNTP library for mos returns value in epoch, so it only makes sense that any libs for setting RTC would be very beneficial to handle setting the value from epoch ... otherwise everyone who uses this lib will have to do it manually.

Here's an example I found of doing this: https://github.com/arduino-libraries/RTCZero/blob/master/src/RTCZero.cpp#L372-L440