[tz] Temporal - ECMAScript built-in JS Library for dates/times/timezones/calendars in progress
Jase Williams
jase.williams at gmail.com
Thu Mar 4 17:27:48 UTC 2021
Hi
I'm one of the TC39 (EcmaScript) delegates.
As a heads up to anyone interested, we're creating a new built-in module in
JavaScript (to hopefully replace Date()) called Temporal.
This new, rich API includes:
- First-class support for all time zones, including DST-safe arithmetic
- Strongly-typed objects for dates, times, date/time values, year/month
values, month/year values, "zoned" date/time values, and durations
- Immutability for all Temporal objects
- String serialization and interoperability via standardized formats
- Compliance with industry standards like ISO 8601, RFC 3339, and RFC5545
(iCalendar)
- Full support for non-Gregorian calendars
Feel free to play around with it and offer feedback on the repo.
The repository is here:
https://github.com/tc39/proposal-temporal
Documentation here:
https://tc39.es/proposal-temporal/docs/index.html
Polyfill here:
https://github.com/tc39/proposal-temporal/tree/main/polyfill
EcmaScript spec:
https://tc39.es/proposal-temporal/
It's currently Stage 2 which means it's under review, but there's hope to
see this implemented in Browsers/NodeJS soon.
For consideration in tz-link.html. Feel free to adjust wording
Project: https://github.com/tc39/proposal-temporal
NPM: https://www.npmjs.com/package/proposal-temporal
Thanks
Jason Williams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mm.icann.org/pipermail/tz/attachments/20210304/87e37c78/attachment.html>
More information about the tz
mailing list