Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Latest commit

 

History

History
48 lines (26 loc) · 1.4 KB

File metadata and controls

48 lines (26 loc) · 1.4 KB

$time / %24time / toRelativeOptions

Interface: toRelativeOptions

$time.toRelativeOptions

Corresponds to {@link Intl.RelativeTimeFormatOptions} (see Intl.RelativeTimeFormat - JavaScript | MDN).

Table of contents

Properties

Properties

localeMatcher

Optional localeMatcher: RelativeTimeFormatLocaleMatcher

The locale matching algorithm to use. For information about this option, see Intl page.


locales

Optional locales: string

ISO language identificator such as "en-GB" (default value)


numeric

Optional numeric: RelativeTimeFormatNumeric

The format of output message. Defaults to auto


style

Optional style: RelativeTimeFormatStyle

The length of the internationalized message. Defaults to long