Hacker News new | past | comments | ask | show | jobs | submit login

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.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: