4 ms·
Why the 5-31 in Latin ?
by agumonkey 10y ago
Why the 5-31 in Latin ?
- hawski 10y agoI tried to find an explanation and only found a fellow seeker of the truth [0] that also couldn't find the answer [1]. He probably tried to search for it more than me. I found the Apple source code for ncal [2], but no answers there. Also it is funny that Latin line has the month entered in octal (05). [0] https://hackingtom.blogspot.de/2012/04/date-of-easter-and-ncal.html https://hackingtom.blogspot.de/2012/04/date-of-easter-and-nc... [1] https://xkcd.com/979/ https://xkcd.com/979/ [2] https://opensource.apple.com/source/misc_cmds/misc_cmds-32/ncal/ncal.c https://opensource.apple.com/source/misc_cmds/misc_cmds-32/n...
- hashhar 10y agoDamn, you stole my chance to link to the xkcd comic. Randall does have an xkcd for everything.
- aristus 10y agoLooking at the source [0], the date field is specified as the last date of the Julian calendar used by that locale. Since LN is the Julian calendar and will never change, it's presumably set to the max date value that the calendar.h date type can represent (AD 10,000) minus the day-counting delta between the two calendars over that period. I look forward to being dead long before the Y10k problem crops up. [0] https://opensource.apple.com/source/misc_cmds/misc_cmds-32/ncal/ncal.c https://opensource.apple.com/source/misc_cmds/misc_cmds-32/n...