#temporal-api

[ follow ]
JavaScript
fromSmashing Magazine
1 week ago

Moving From Moment.js To The JS Temporal API - Smashing Magazine

JavaScript's date/time handling evolved from the limited Date API to Moment.js and now to Temporal, a new standard that addresses previous limitations and provides superior flexibility for modern applications.
JavaScript
fromInfoQ
1 month ago

Chrome 144 Ships Temporal API: Advancing JavaScript Date/Time Standardisation

Chrome 144 adds the Temporal API, a modern, immutable replacement for Date that provides distinct types, explicit time zones, calendars, arithmetic, and formatting.
JavaScript
fromInfoWorld
1 month ago

Last JavaScript-based TypeScript arrives in beta

TypeScript 6.0 adds es2025 target/lib, reduces this-sensitivity for functions, includes built-in Temporal types, and offers a stableTypeOrdering flag aligning behavior with TypeScript 7.0.
#javascript
fromInfoWorld
1 month ago

Deno adds API for date and time operations

The Temporal API is intended to address shortcomings of the existing Date object in JavaScript. It's available with the --unstable-temporal flag. Temporal acts as a top-level namespace that brings a modern date/time API to JavaScript. Temporal provides separate classes for date-only, time-only, and other scoped use cases, making code more readable and preventing bugs caused by incorrectly assuming 0, UTC, or the local time zone for values that are actually unknown.
JavaScript
[ Load more ]