Temporal: Keep Time on Your Side
summary
Proposes a replacement for JavaScript Date with five immutable types (Instant, ZonedDateTime, PlainDate/PlainTime/PlainDateTime) that separate absolute time from civil dates, enforce ISO 8601 parsing, and aim for nanosecond precision and explicit timezone handling. Demonstrates simpler, correct operations like “add one month” by choosing a civil date versus an instant, explains support for arbitrary calendars, and provides a working polyfill on npm today (API still evolving but usable for experimentation).
AI-written summary · about
chapters (8)
- 0:00Start
- 0:51Issues with Date
- 2:25Example
- 3:45Time is really hard
- 4:23Real Fact #341
- 4:44Protagonists
- 6:53TC39 temporal proposal
- 9:27Mental Model
related talks
58mIt's Time to Talk About Time
16mA 50-year accident: how JavaScript got Date, and why Temporal exists
01h 13mTempus Fugit: A story of time
19mProgramming in the 4th Dimension - Making Time Make Sense
01h 00mDates and times aren't that hard - honestly!
01h 04mHow to outsmart time: Building futuristic JavaScript applications using Temporal
22mThe Past, Present, and Future of JavaScript Date and Time APIs
24mI have a Date
