JavaScript's Date constructor has fundamental flaws: zero-indexed months, inconsistent parsing, mutable objects representing immutable real-world dates, and poor timezone support. The new Temporal API solves these issues with immutable-style methods that return new objects instead of mutating existing ones, explicit timezone

19m read time From piccalil.li
Post cover image
Table of contents
Temporal is not a constructor, it’s a namespace objectMat “Wilto” Marquis
17 Comments

Sort: