We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
A duration is a special type of component whose value has less restricted bounds;
classDiagram class DateComponent { value: number unit: Unit } class Duration { toString(): string toSpec() fromString(str)$: Duration between(dateStart, dateEnd)$: Duration } DateComponent <|-- Duration
You can select the API level you want to use. For example:
import {Level2Duration as Duration} from "@rr0/time" const aroundTenMinutes = Duration.fromString("P10M~") aroundTenMinutes.value // 10 * Level0TimeUnits.minute.duration aroundTenMinutes.toSpec().minutes // 10