3 ms·
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 ar
by TYMorningCoffee 6y ago
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/1329228438679531521 https://mobile.twitter.com/hillelogram/status/13292284386795...
- SloopJon 6y agoAlthough 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/ctime.3 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/ctime.3 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/ctime.3 https://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man3/ct...