Tweet

Replying to @josecastillo

the ASF calendar code used the RTC in 32-bit counter mode, which meant a lot of calculating how timestamps relate to calendar dates. but working directly in clock mode, the microcontroller itself handles all that; you can just hand the clock register a human-readable date & time.

(original)