Ask HN: Did you encounter any leap year bugs today?
524 pointsAfter a frantic scramble this morning, our billing team has finished patching a bug which erroneously was charging our monthly subscribers for an extra day.
All test suites are passing now, and SRE has scheduled a postmortem after the QA confirms the fix in 2028.
Comments (481) 159 threads
Show all comments
Showing thread 49 of 159
Date is relatively simple.
And you are done for all Gregorian years.So it returns 29 if divisible by 400, 28 if divisible by 100, etc.