Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 7 additions & 17 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

<table>
<thead>
Expand All @@ -900,7 +890,7 @@ This includes:
<tbody>
<tr>
<th>Nightly</th>
<td>137</td>
<td>139</td>
<td>Yes</td>
</tr>
<tr>
Expand All @@ -920,7 +910,7 @@ This includes:
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>javascript.options.experimental.temporal</code></td>
<td colspan="2">N/A</td>
</tr>
</tbody>
</table>
Expand Down
19 changes: 19 additions & 0 deletions files/en-us/mozilla/firefox/releases/139/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down