News for hackers. Stuff that matters.
Re:Why is day of the month 1-indexed but the month is 0-inde... by noncoml on Tuesday November 24, 2020 @01:09AM (#25195792)
Summary:

For historical reasons.

When displaying the day of the month, we wanted to print "1" so we stored that.

For months, we wanted to print a 3 letter abbreviation, so we had a string ("JanFebMar...") and we stored an index-0 value to start at the first entry of the months string.

Re:Why is day of the month 1-indexed but the month is 0-inde... by TYMorningCoffee on Tuesday November 24, 2020 @01:27AM (#25195882)
Thank you for the summary. These twitter threads are difficult to read, especially on mobile.
Re:Why is day of the month 1-indexed but the month is 0-inde... by kbumsik on Tuesday November 24, 2020 @01:25AM (#25195872)
So the day of the month is just a number but the month is index, I guess.