News for hackers. Stuff that matters.
Re:Why is day of the month 1-indexed but the month is 0-inde... by deepsun on Tuesday November 24, 2020 @01:37AM (#25195924)
Month is not always string array, for example in ISO: 2020-11-23.

And days can be string as well: "1st November".

Re:Why is day of the month 1-indexed but the month is 0-inde... by kube-system on Tuesday November 24, 2020 @01:52AM (#25196003)
It was a string array first. ISO came long after the Gregorian calendar. And the months came from the Julian calendar.

If we go all the way back, one could say it was a mixed array of string and integer. September (7), October (8), November (9), and December (10) are linguistically ordinal names... but they’re all off by two since the deprecation of the Roman calendar.

Re:Why is day of the month 1-indexed but the month is 0-inde... by jsrjenkins on Tuesday November 24, 2020 @03:44AM (#25196532)
Actually the Romans counted their months beginning with March:

March (1) April (2) May (3) ... July (5) (named after Julius Caesar) August (6) (named after Augustus) September (7) ... etc.

The reason being in the ancient world all serious activity begins in the spring, especially war campaigns which were to be under the aegis of the god Mars, from which the name of the month.

Note that when we have a leap year we add the extra day to the end of the Roman year, that is at the end of February which is the last month of the year.

More precisely, we duplicate the sixth of the calends of March. This is why in French the leap year is called 'bisextile'.

Re:Why is day of the month 1-indexed but the month is 0-inde... by 082349872349872 on Tuesday November 24, 2020 @02:22AM (#25196131)
Since Julius and Augustus.

(written 4 Freezy 229)

Re:Why is day of the month 1-indexed but the month is 0-inde... by _Microft on Tuesday November 24, 2020 @03:39AM (#25196503)
It was a list of names long before it was considered "a string array".