Description
Feature
A modern API for working with date and time, meant to supersede the original
Date
API.
Temporal
is meant to replace Date
and be much more useful with more precision (down to nanosecond) and standard ways to interact with the concepts of Date and Time (even different calendars). It also has things builtin like Temporal.Duration
type objects.
I'm opening this mostly as an FYI to get it on our radar to keep an eye on going forward. The first implementations only just recently dropped in Firefox Nightly and Safari Tech preview.
Very long term I could see this potentially replacing JulianDate
. More near term we may want to look at implementing conversion functions like we already have for Date
objects to support developers that start to use Temporal
in their applications.
I'm personally very excited about the new API and can foresee lots of other devs jumping at the chance to use it in newer applications as it stabilizes in more browsers.