Re:Ask HN: Did you encounter any leap year bugs today?
by swores on Thursday February 29, 2024 @08:47PM
(#39557579)
Ahh, so it's centuries that aren't divisible by 400 rather than that aren't divisible by 4, that makes more sense!
Thanks for answering
Re:Ask HN: Did you encounter any leap year bugs today?
by thaumasiotes on Thursday February 29, 2024 @10:04PM
(#39558088)
It's centuries that aren't divisible by 4. It isn't years that aren't divisible by 4.
So 2000 was leap, but 2100, 2200, and 2300 won’t be, but 2400 will be.