DurationArithmeticOptions

external interface DurationArithmeticOptions(source)

Options to control behavior of Duration.compare(), Duration.add(), and Duration.subtract()

Properties

Link copied to clipboard
abstract val relativeTo: Any?

The starting point to use when variable-length units (years, months, weeks depending on the calendar) are involved. This option is required if either of the durations has a nonzero value for weeks or larger units.