Interface ToRelativeOptions

Hierarchy

  • ToRelativeOptions

Properties

base?: DateTime

The DateTime to use as the basis to which this time is compared. Defaults to now.

locale?: string
numberingSystem?: NumberingSystem

The Intl system may choose not to honor this

padding?: number

Padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding. Defaults to 0.

round?: boolean

Defaults to true.

If omitted, the method will pick the unit.

Generated using TypeDoc