Optionaloptions: RoundingOptionsWithLargestUnit<TimeUnit>Returns the Duration from interval.start to interval.end.
The default largestUnit is opinionated for each input type — "year"
for date-bearing types (PlainDate, PlainDateTime, ZonedDateTime) and
"hour" for Instant / PlainTime — so the result reads naturally
without further configuration. Pass options to override.
options accepts the same shape as Temporal's .until() rounding
options, including smallestUnit, roundingIncrement, and
roundingMode.
Optionaloptions: RoundingOptionsWithLargestUnit<TimeUnit | DateUnit>Returns the Duration from interval.start to interval.end.
The default largestUnit is opinionated for each input type — "year"
for date-bearing types (PlainDate, PlainDateTime, ZonedDateTime) and
"hour" for Instant / PlainTime — so the result reads naturally
without further configuration. Pass options to override.
options accepts the same shape as Temporal's .until() rounding
options, including smallestUnit, roundingIncrement, and
roundingMode.
Optionaloptions: RoundingOptionsWithLargestUnit<TimeUnit | DateUnit>Returns the Duration from interval.start to interval.end.
The default largestUnit is opinionated for each input type — "year"
for date-bearing types (PlainDate, PlainDateTime, ZonedDateTime) and
"hour" for Instant / PlainTime — so the result reads naturally
without further configuration. Pass options to override.
options accepts the same shape as Temporal's .until() rounding
options, including smallestUnit, roundingIncrement, and
roundingMode.
Optionaloptions: RoundingOptionsWithLargestUnit<DateUnit>Returns the Duration from interval.start to interval.end.
The default largestUnit is opinionated for each input type — "year"
for date-bearing types (PlainDate, PlainDateTime, ZonedDateTime) and
"hour" for Instant / PlainTime — so the result reads naturally
without further configuration. Pass options to override.
options accepts the same shape as Temporal's .until() rounding
options, including smallestUnit, roundingIncrement, and
roundingMode.
Optionaloptions: RoundingOptionsWithLargestUnit<TimeUnit>
Returns the
Durationfrominterval.starttointerval.end.The default
largestUnitis opinionated for each input type —"year"for date-bearing types (PlainDate,PlainDateTime,ZonedDateTime) and"hour"forInstant/PlainTime— so the result reads naturally without further configuration. Passoptionsto override.optionsaccepts the same shape as Temporal's.until()rounding options, includingsmallestUnit,roundingIncrement, androundingMode.