News for hackers. Stuff that matters.
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.
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.
Re:Fixing a Small Calc.exe Bug by granshaw on Wednesday June 19, 2019 @09:37AM (#20223202)
Talk to any non programmer or mathematician on the street (aka your users) and they’ll expect the answer to be Nov 30.
Re:Fixing a Small Calc.exe Bug by anchpop on Wednesday June 19, 2019 @11:54AM (#20224433)
Reminds me of the old joke, why do programmers confuse Halloween and Christmas? Because DEC 25 is OCT 31
Re:Fixing a Small Calc.exe Bug by slim on Wednesday June 19, 2019 @09:36AM (#20223189)
that's 123 days from July 31 not 4 months from July 31