Re:Fixing a Small Calc.exe Bug
by slim on Wednesday June 19, 2019 @07:00AM
(#20222264)
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.
[ Parent
| on HN ]
Re:Fixing a Small Calc.exe Bug
by jimktrains2 on Wednesday June 19, 2019 @09:11AM
(#20222967)
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