diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index 2bee12c639afa54..179b5549242b619 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -873,21 +873,11 @@ An SVG viewer can use this information to conserve memory by discarding elements ### Temporal API -The [Temporal object](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal) aims to simplify working with dates and times in various scenarios, with built-in time zone and calendar representations ([Firefox bug 1912511](https://bugzil.la/1912511)). -This includes: - -- A **duration** (difference between two time points): {{jsxref("Temporal.Duration")}} -- **Points in time**: - - As a unique instant in history: - - A timestamp: {{jsxref("Temporal.Instant")}} - - A date-time with a time zone: {{jsxref("Temporal.ZonedDateTime")}} - - **Time-zone-unaware date/time ("Plain")**: - - Date (year, month, day) + time (hour, minute, second, millisecond, nanosecond): {{jsxref("Temporal.PlainDateTime")}} - - Date (year, month, day): {{jsxref("Temporal.PlainDate")}} - - Year, month: {{jsxref("Temporal.PlainYearMonth")}} - - Month, day: {{jsxref("Temporal.PlainMonthDay")}} - - Time (hour, minute, second, millisecond, nanosecond): {{jsxref("Temporal.PlainTime")}} -- **Now** (current time) as various class instances, or in a specific format: {{jsxref("Temporal.Now")}} +The `withCalendar()` method for [`PlainDate`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/withCalendar), [`PlainDateTime`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/withCalendar), and [`ZonedDateTime`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/withCalendar) objects within the [Temporal object](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal) currently have the following [`calendar` types](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf#supported_calendar_types) disabled in all versions other than Firefox Nightly ([Firefox bug 1912511](https://bugzil.la/1912511) and [Firefox bug 1954138](https://bugzil.la/1954138)): + +- `islamic` +- `islamic-rgsa` +- `islamic-umalqura` @@ -900,7 +890,7 @@ This includes: - + @@ -920,7 +910,7 @@ This includes: - +
Nightly137139 Yes
Preference namejavascript.options.experimental.temporalN/A
diff --git a/files/en-us/mozilla/firefox/releases/139/index.md b/files/en-us/mozilla/firefox/releases/139/index.md index 185e97b415795c7..80926902d1fe0a5 100644 --- a/files/en-us/mozilla/firefox/releases/139/index.md +++ b/files/en-us/mozilla/firefox/releases/139/index.md @@ -21,6 +21,25 @@ This article provides information about the changes in Firefox 139 that affect d ### JavaScript +- The Temporal API is now supported, this aims to simplify working with dates and times in various scenarios, with built-in time zone and calendar representations ([Firefox bug 1912511](https://bugzil.la/1912511) and [Firefox bug 1954138](https://bugzil.la/1954138)). +This includes: + - A **duration** (difference between two time points): {{jsxref("Temporal.Duration")}} + - **Points in time**: + - As a unique instant in history: + - A timestamp: {{jsxref("Temporal.Instant")}} + - A date-time with a time zone: {{jsxref("Temporal.ZonedDateTime")}} + - **Time-zone-unaware date/time ("Plain")**: + - Date (year, month, day) + time (hour, minute, second, millisecond, nanosecond): {{jsxref("Temporal.PlainDateTime")}} + - Date (year, month, day): {{jsxref("Temporal.PlainDate")}} + - Year, month: {{jsxref("Temporal.PlainYearMonth")}} + - Month, day: {{jsxref("Temporal.PlainMonthDay")}} + - Time (hour, minute, second, millisecond, nanosecond): {{jsxref("Temporal.PlainTime")}} + - **Now** (current time) as various class instances, or in a specific format: {{jsxref("Temporal.Now")}} +- Currently the following calendar types are disabled for the `withCalendar()` method for [`PlainDate`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/withCalendar), [`PlainDateTime`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/withCalendar), and [`ZonedDateTime`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/withCalendar) objects: + - `islamic` + - `islamic-rgsa` + - `islamic-umalqura` + #### Removals ### SVG