▲ | dguest 5 days ago | |||||||
Wait so one day over the new year is 2025-01-01 - 2024-12-31 = 20250101 - 20241231 = 8870 i.e. 90 months and 10 days or 7 years 6 months and 10 days How is that the same thing as one day? | ||||||||
▲ | FigurativeVoid 2 days ago | parent | next [-] | |||||||
Oh it never worked. It was bad design by someone who was well meaning, but inexperienced. All these issues were resolved, usually, by parsing the date into a proper Date class. | ||||||||
▲ | cortesoft 4 days ago | parent | prev | next [-] | |||||||
It is even worse than that, each month boundary breaks it, too: 2025-02-01 - 2025-01-31 = 20250201 - 20250131 = 70 | ||||||||
▲ | rootsu 4 days ago | parent | prev [-] | |||||||
They might be subtracting taking first 4 digits and the subtracing yyyy-yyyy, mm-mm and dd-dd. | ||||||||
|