Hacker News new | ask | show | jobs
by slim 2561 days ago
Dates are actually always durations. But most time libraries design fail to aknowledge that. When you say something is 4 months away, it means you're probably happy with a 1 month resolution. 4 months from 31 July is November. 4 months from any day in July is always November.
1 comments

But 4 months from July 31 is Dec 1.
Talk to any non programmer or mathematician on the street (aka your users) and they’ll expect the answer to be Nov 30.
Reminds me of the old joke, why do programmers confuse Halloween and Christmas? Because DEC 25 is OCT 31
that's 123 days from July 31 not 4 months from July 31