News for hackers. Stuff that matters.
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.
Re:History of Zero-Based Months? by jefftk on Saturday August 27, 2022 @07:58AM (#32618016)
Or put Dec a second time, at 0, and then % 12 works.
Re:History of Zero-Based Months? by _kst_ on Saturday August 27, 2022 @02:34PM (#32621776)
About as difficult as it is to add 1 before printing the month as a number.