News for hackers. Stuff that matters.
Re:Why is day of the month 1-indexed but the month is 0-inde... by TYMorningCoffee on Tuesday November 24, 2020 @01:10AM (#25195795)
Doesn't predate Unix according to him

> I stopped at Unix 5, from 1974. It didn't even have a <time.h> file! In its <ctime.c> file, it stores the date as an array of integer values. The `tm` struct only starts appearing in Unix 7.

https://mobile.twitter.com/hillelogram/status/13292284386795...

Re:Why is day of the month 1-indexed but the month is 0-inde... by SloopJon on Tuesday November 24, 2020 @02:44AM (#25196222)
Although the source for the fourth edition is not available, the man page for the ctime(3) library function is:

https://minnie.tuhs.org/cgi-bin/utree.pl?file=V4/man/man3/ct...

It confirms that the day of the month element was one based. This function is different in earlier editions:

https://minnie.tuhs.org/cgi-bin/utree.pl?file=V3/man/man3/ct...

https://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man3/ct...