News for hackers. Stuff that matters.
Re:Fixing a Small Calc.exe Bug by mFixman on Wednesday June 19, 2019 @05:41AM (#20222005)
An month makes sense as an absolute value, not as a relative one.

The Windows calculator is terrible design. To calculate deltas between two dates you need to convert them to seconds, subtract them, and convert the result back to an absolute time.

Re:Fixing a Small Calc.exe Bug by hoseja on Wednesday June 19, 2019 @06:06AM (#20222086)
But then you get the (in some ways correct) result that the difference between the 15th of one month and the 15th of another month is a couple months and couple of days, instead of the intuitive whole number of months.
Re:Fixing a Small Calc.exe Bug by lagadu on Wednesday June 19, 2019 @08:08AM (#20222536)
That gives you an absolute time result, not a practical one. Using that methodology the calculator wouldn't be able to tell whether something is in one month or not.
Re:Fixing a Small Calc.exe Bug by jandrese on Wednesday June 19, 2019 @02:30PM (#20225875)
How long is a month? How long is a year? How long is a minute? How are you going to do your subtraction?