-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement rounding in Temporal.Absolute.difference
Includes several new abstract operations: - ToSmallestTemporalDurationUnit, which is distinct from ToSmallestTemporalUnit because it prefers plural unit names and does have a fallback value; - ValidateTemporalDifferenceUnits, which makes sure that largestUnit is not smaller than smallestUnit; - and MaximumTemporalDurationRoundingIncrement, which computes the maximum (not inclusive) value for roundingIncrement given the value of smallestUnit, for rounding a Temporal.Duration. All of these will be reused for Temporal.DateTime.difference and Temporal.Time.difference in subsequent commits. See: #827
- Loading branch information
Showing
7 changed files
with
437 additions
and
9 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
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
Oops, something went wrong.