Ecmascript Temporal

ECMAScript Temporal (ES2027, stage 4): write, review and migrate JavaScript date and time code with Temporal.Instant, ZonedDateTime, PlainDate, PlainTime, PlainDateTime, PlainYearMonth, PlainMonthDay, Duration and Temporal.Now. Use when picking a Temporal type, handling IANA time zones and DST (disambiguation compatible, earlier, later or reject; offset use, ignore, prefer or reject), calendars (iso8601, withCalendar, monthCode), arithmetic with add, subtract, until, since, round and total (largestUnit, smallestUnit, roundingMode, relativeTo, balancing), parsing and serializing RFC 9557 IXDTF strings with [time zone] and [u-ca=] annotations or RFC 3339 timestamps, compare versus equals, Intl.DateTimeFormat and toLocaleString, or replacing new Date(), Date.parse and getTimezoneOffset. Targets Temporal (ECMAScript 2027), posture build; upgrades from ECMAScript Date and from Temporal pre-reduction polyfill API code that uses Temporal.Calendar, Temporal.TimeZone, getISOFields or withPlainDate.

ScaleDockHQ Updated

File contents

ScaleDockHQ/scaledock-skills commit 08a0886b96 Runs: scaledockhq/messageformat

Frequently asked questions

npx get-skill add scaledockhq/ecmascript-temporal