News for hackers. Stuff that matters.
Re:Ask HN: Did you encounter any leap year bugs today? by quietbritishjim on Friday March 01, 2024 @03:43AM (#39559885)
> Feb 29 + 365 days = Feb 28.

Correct.

> And Feb 29 + 730 days = Feb 27

Incorrect. It's Feb 28 again. In a normal, non-leap year, if you add 365 days then you get back to the same date.

Re:Ask HN: Did you encounter any leap year bugs today? by paulddraper on Friday March 01, 2024 @11:01AM (#39563010)
Sorry, typo I meant that Feb 28 + 730 days = Feb 27 (sometimes)