oracle / graaljs

GraalJS – A high-performance, ECMAScript compliant, and embeddable JavaScript runtime for Java
https://www.graalvm.org/javascript/
Universal Permissive License v1.0
1.82k stars 191 forks source link

[GR-28239] Implement Temporal Proposal #851

Open fniephaus opened 1 month ago

fniephaus commented 1 month ago

TL;DR

We plan to implement the Temporal proposal in GraalJS. Provides standard objects and functions for working with dates and times.

Details

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