3 ms·
Is that a bug? I interpret it as from midnight 2016-04-04 to the first time which has the date 2019-01-31. That includes the full day of 2016-04-04 but nothing
by timthelion 3y ago
Is that a bug? I interpret it as from midnight 2016-04-04 to the first time which has the date 2019-01-31. That includes the full day of 2016-04-04 but nothing from 2019-01-31. This is contrasted with the opposite direction which is midnight 2019-01-31 going backwards, thus not including 2019-01-31 and all the way up till the first time which is 2016-04-04 non-inclusive.
Date time arithmetic is weird ;)
- timthelion 3y agoOK, I see, but it shows a different value for the absolute number of days, that's weird.
- qwertox 3y agoIf that were true, then this would be false: https://www.wolframalpha.com/input?i=2019-01-31+to+2015-10-21 https://www.wolframalpha.com/input?i=2019-01-31+to+2015-10-2... = 3 years 3 months 10 days https://www.wolframalpha.com/input?i=2015-10-21+to+2019-01-31 https://www.wolframalpha.com/input?i=2015-10-21+to+2019-01-3... = 3 years 3 months 10 days