News for hackers. Stuff that matters.
Re:Why is day of the month 1-indexed but the month is 0-inde... by globular-toast on Tuesday November 24, 2020 @10:18AM (#25199197)
The answer is right there in the text from K&R. `tm_mday` is day of the month, `tm_mon` is months since January. There's nothing else to it really. The first month of the year is not "1", it's January. In any case, this is all about how we display dates and it's all rather silly and it's best not to think about it too much.

There are no comments on this comment yet.