ECMAScript 2023 & Temporal All In One

ES14 / ES2023

ES2015 => ES6

...

ES2022 => ES13
ES2023 => ES14

image

image

https://caniuse.com/sr_es13

https://caniuse.com/sr_es14

https://caniuse.com/sr_es12

Temporal

ES2023 / ES14

This Stage 3 proposal is experimental.

image

Date has been a long-standing pain point in ECMAScript.
This is a proposal for Temporal, a global Object that acts as a top-level namespace (like Math), that brings a modern date/time API to the ECMAScript language.
For a detailed look at some of the problems with Date, and the motivations for Temporal, see: Fixing JavaScript Date.

Temporal fixes these problems by:

Providing easy-to-use APIs for date and time computations
First-class support for all time zones, including DST-safe arithmetic
Dealing only with objects representing fixed dates and times
Parsing a strictly specified string format
Supporting non-Gregorian calendars
Temporal provides separate ECMAScript classes for date-only, time-only, and other scoped use cases.
This makes code more readable and prevents bugs caused by incorrectly assuming 0, UTC, or the local time zone for values that are actually unknown.

https://tc39.es/proposal-temporal/docs/

https://github.com/tc39/proposal-temporal

refs

https://plainenglish.io/blog/latest-es13-javascript-features

https://codingbeautydev.com/blog/es13-javascript-features/

https://www.w3schools.io/javascript/es13-features/



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


原文地址:http://www.cnblogs.com/xgqfrms/p/16927831.html

1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长! 2. 分享目的仅供大家学习和交流,请务用于商业用途! 3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入! 4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解! 5. 如有链接无法下载、失效或广告,请联系管理员处理! 6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需! 7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员! 8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载 声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性