Found in 1 comment on Hacker News
tzs · 2022-07-16 · Original thread
I think every language I've used has annoyed me in how it handles dates and times.

I've been tempted several times to sit down and repeatedly read Dershowitz and Reingold's book "Calendrical Calculations" [1] cover to cover until I thoroughly understand it, and then write my own date and time library and port it to every language I use.

That would mean that when I learn a new language I'd have to take some time to port my date and time library, but looking at the languages I already know that would have been less than the time it took me to find and learn to deal with the quirks and annoyances in their libraries. I see no reason to believe that this will be different for any future languages I decide to learn.

Yes, I know this would be annoying to whoever has to take over my code when I'm gone, but I tend to stick around on projects until they reach end of life and so there almost never is anyone that comes after me.

[1] https://www.amazon.com/Calendrical-Calculations-Ultimate-Edw...

Fresh book recommendations delivered straight to your inbox every Thursday.