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.
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.