Skip to main content
Temporal.DifferenceOptions.smallestUnit - Temporal - Web documentation
property Temporal.DifferenceOptions.smallestUnit
The unit to round to. For example, to round to the nearest minute, use `smallestUnit: 'minute'`. This property is optional for `until()` and `since()`, because those methods default behavior is not to round. However, the same property is required for `round()`.

Type