From Roman Emperors to the Temporal API: Conquering Dates and Times in JS
summary
Explains why dates and times cause bugs in JavaScript by covering calendar dates, timescales, time zones, and locale-specific formatting, with historical examples (Roman reforms, British railways) and flaws of the existing Date API. Introduces the upcoming Temporal API: its conceptual model, code examples, advantages and disadvantages, and migration challenges.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:51Why time is hard
- 4:00Calendar dates history
- 9:26Measuring time and UTC
- 15:26Time zones paradoxes
- 19:00Date-time formatting issues
- 22:11Native Date API problems
- 23:17Temporal API overview
- 24:00Temporal classes: Instant, PlainDate, PlainTime
- 26:31Temporal classes: PlainDateTime, ZonedDateTime
- 30:27Temporal classes: Duration and math
- 36:45Temporal DST resolution
- 37:58Converting Date and Temporal
- 39:12Temporal pros and cons
- 42:19Temporal future and conclusion
- 43:43Q&A
related talks
16mA 50-year accident: how JavaScript got Date, and why Temporal exists
01h 13mTempus Fugit: A story of time
58mIt's Time to Talk About Time
22mThe Past, Present, and Future of JavaScript Date and Time APIs
01h 04mHow to outsmart time: Building futuristic JavaScript applications using Temporal
45mTemporal Collapse in JS
29mTemporal: Keep Time on Your Side
19mProgramming in the 4th Dimension - Making Time Make Sense
