Skip to content

Commit

Permalink
Mention that DurationFormat only takes integer components (#37980)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored Feb 6, 2025
1 parent c5849bd commit 415324c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ format(duration)
### Parameters

- `duration`
- : The duration object to be formatted. It should include some or all of the following properties: `years`, `months`, `weeks`, `days`, `hours`, `minutes`, `seconds`, `milliseconds`, `microseconds`, `nanoseconds`. Can be a {{jsxref("Temporal.Duration")}} object.
- : The duration object to be formatted. It should include some or all of the following properties: `years`, `months`, `weeks`, `days`, `hours`, `minutes`, `seconds`, `milliseconds`, `microseconds`, `nanoseconds`. Each property's value should be an integer, and their signs should be consistent. This can be a {{jsxref("Temporal.Duration")}} object; see the {{jsxref("Temporal.Duration")}} documentation for more information about these properties.

### Return value

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ formatToParts(duration)
### Parameters

- `duration` {{optional_inline}}
- : The duration object to be formatted. It should include some or all of the following properties: `years`, `months`, `weeks`, `days`, `hours`, `minutes`, `seconds`, `milliseconds`, `microseconds`, `nanoseconds`. Can be a {{jsxref("Temporal.Duration")}} object.
- : The duration object to be formatted. It should include some or all of the following properties: `years`, `months`, `weeks`, `days`, `hours`, `minutes`, `seconds`, `milliseconds`, `microseconds`, `nanoseconds`. Each property's value should be an integer, and their signs should be consistent. This can be a {{jsxref("Temporal.Duration")}} object; see the {{jsxref("Temporal.Duration")}} documentation for more information about these properties.

### Return value

Expand Down

0 comments on commit 415324c

Please sign in to comment.