Tweet
Replying to @tahnok
I’m gonna play some more tomorrow with the code you sent! My previous instinct was to copy from the ASF code that was doing this in an earlier rev of the watch library, but it doesn’t look like it’s terribly efficient — O(n) where n is the current year 😬 https://github.com/joeycastillo/Sensor-Watch/blob/a65dcf1ec8071878988d5aa0390c5be66ba52a11/watch-library/hal/src/hal_calendar.c#L216
(original)