Tweet
Replying to @josecastillo
by storing the date/time in the same bit-packed struct the RTC uses, getting the time is as simple as copying the register value. and it gives the app developer a simple enough API with minimal extra cruft: they just have to type
date_time.unit.second instead of date_time.second
(original)