Standard built-ins
Temporal
Namespace for distinct immutable time types. Official proposal Stage 4 draft dated 2026-07-27; check runtime. Example is a guarded capability probe; local Node lacks Temporal, so the actual API branch was not executed.
Formal Syntax & Structure
javascript syntaxjavascript
Temporal.Instant; Temporal.PlainDate; Temporal.ZonedDateTimeWorking Example
Example Snippetjavascript
if(typeof Temporal==="object"&&typeof Temporal.PlainDate?.from==="function"){console.log(Temporal.PlainDate.from("2024-01-01").toString());}else{console.log("Temporal unavailable");}