Self-pay gas station pumps break across NZ as software can’t handle Leap Day::“We’ll add it to our Outlook reminders…”
It was millennia ago when I first read “don’t ship your own date/time library”. Guess these fellas somehow missed it.
(I did this thing a while ago, but hopefully it doesn’t count since it’s a joke library)
A decade ago Tom Scott was recorded for Computerphile with this hilarious an enlightening cautionary tale. Never, ever, write your own calendar code.
That was excellent, thank you.
Y2K finally happened.
kiWi2K
And THAT’S why you don’t roll your own datetime class/column format. It’s a solved problem, people!
Someone forgot a case in their test suite.
I can’t imagine what logic would’ve hinged on February having 28 days. It’s not like 29 exceeds some maximum value for days in a month. Probably someone thought it was a good idea to write their own date-time library.
Days you should book off as a developer:
Feb 29th. Clocks go forward day. Clocks go back day.
If you’ve done anything with dates or scheduling, these days will fuck it.