-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editorial: Change TimeDuration to use time durations instead of inter…
…nal durations Changes: - Move handling for `day` units from `RoundTimeDuration` to `Temporal.Duration.prototype.round`. - Correct argument type for `DifferenceInstant` to only allow time units. - `RoundTimeDuration` is now only called with time units and its input and output is a time duration. - Remove the no rounding fast path from `DifferenceTemporalPlainTime` to match `DifferenceInstant`. Fixes: `TemporalDurationFromInternal` is fallible in `Temporal.Duration.prototype.toString`: ```js Temporal.Duration.from({ days: 1, seconds: 2**53 - 1 - (24*60*60), nanoseconds: 999_999_999 }).toString({ roundingMode: "ceil", fractionalSecondDigits: 7 }); ```
- Loading branch information
Showing
3 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters