JavaScript's date object has been tricky for years, but that is changing. The NEW Temporal API brings, 🌍 Easily handle time zones 📆 Precise date math 🕒 Parse ISO strings without errors ⌛ Durations, date ranges, and more. Start experimenting 👇 developer.mozilla.org/en-US/docs/...
Post
Temporal inherits 3+ design flaws from CLDR: - (ISO) Weeks should have their own calendar system. - Gregorian lunar months (from its Easter Computus) should be available as their own calendar system. - There should be (at least) one optional level between year and month, e.g. season.
0 reposts5 likes
This should probably be fixed by Unicode/CLDR first, ECMA/Javascript second. unicode-org.atlassian.net/browse/CLDR-...
A pluggable calendar API was part of an earlier version of the proposal, but it was dropped due to complexity and limited use cases. You can read more about the reasoning and options in github.com/tc39/proposa....
Hi! I'm a champion for Temporal focusing on Intl support. 1. We shipped with minimal week-of-year support. More features can be added later. Tracking issue: github.com/js-temporal/... ...