Post

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/...

developer.mozilla.orgTemporal - JavaScript | MDNThe Temporal object enables date and time management in various scenarios, including built-in time zone and calendar representation, wall-clock time conversions, arithmetics, formatting, and more. It is designed as a full replacement for the Date object.

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.

No replies yet.