JavaScript:Temporal
lastmod 2026-01-16created 2024-01-263 edits
See also
Favorite site
- Temporal documentation
- Dates, times, and the Temporal API in JavaScript
- Let's learn about Temporal
- My only wish for 2024 is..? - YouTube - Nomad Coders, an explanation of the JavaScript Temporal API.
- Date is going away, Temporal is coming | GeekNews
- Points out the incompleteness and inconsistency of JavaScript's existing Date object and introduces the Temporal API to replace it
- Date behaves as a mutable object, which conflicts with the actual concept of a date, and has structural problems such as parsing errors and limited time zone handling
- Temporal provides a new immutability-based model for handling dates and times, including fine-grained classes such as PlainDate, ZonedDateTime, and Duration
- Temporal methods return new objects instead of modifying existing ones, enabling clear and safe chained operations