Re:History of Zero-Based Months?
by DonaldFisk on Saturday August 27, 2022 @05:40AM
(#32617355)
How difficult is it to either subtract 1 before indexing your array, or have a 13 element array with a dummy value in element 0? Deprecate time.h and adopt ISO 8601 already.
[ Parent
| on HN ]
Or put Dec a second time, at 0, and then % 12 works.