logoalt Hacker News

kccqzyyesterday at 6:29 PM3 repliesview on HN

I wrote my own date calculation functions a while ago. And during that, I had an aha moment to treat March 1 as the beginning of the year during internal calculations[0]. I thought it was a stroke of genius. It turns out this article says that’s the traditional way.

[0]: https://github.com/kccqzy/smartcal/blob/9cfddf7e85c2c65aa6de...


Replies

zokieryesterday at 7:28 PM

not completely coincidentally, March was also the first month of the year in many historical calendars. Afaik that also explains why the month names have offset to them (sept, oct, nov, dec)

edit: I just love that there are like 5 different comments pointing out this same thing

show 6 replies
silisiliyesterday at 6:47 PM

At this risk of me feeling stupid, could you briefly explain the benefit of this?

show 4 replies