Temporal: Getting started with JavaScript's new date time API
Didn't find to much info on arithmetic support, although it is mentioned.However, I hate working with dates because many APIs make question about dates a slog.Consider the following for the poor people on the dark side of the planet (UTC + something). If any application only saves the date and not the time and you have dates like 2021-06-28T00:00:00 or something like that.Now it gets saved in a DB as 2021-06-27Z23:00:00, because the user lives in UTC+1-land. It is correct but makes my blood boil and propably causes a lot of errors, even in apps that set their time zone correctly. How often have I seen implementations that just /(.*)T.*/ match the date and create a bug.I have no solution for this, but I wasted too much time on problems like this. Such errors also notoriously evade unit tests...This seems decent from a quick look. But let us be honest, it has to compete with moment.js, not with Date().