Hacker News new | ask | show | jobs
by bombcar 843 days ago
This is why -365 days can be better than -1y.
2 comments

Until tomorrow when your system is now off by a day for the next 365 days.
Frankly unless you've considered it ahead of time and thought you'd handled it, IMO you want the error. What's the correct thing to do here? I don't think it's necessarily -365d, it might be, but if I was GP I'd be glad for the chance to consider it and decide what's correct - instead of it just blowing up or even worse silently going whichever way's wrong and undetected for a while.