API / Core / Intl / Relativetimeformat

RelativeTimeFormat

t

RESCRIPT
type t

make

RESCRIPT
let make: unit => t

makeWithLocale

RESCRIPT
let makeWithLocale: string => t

makeWithLocales

RESCRIPT
let makeWithLocales: array<string> => t

makeWithLocaleAndOptions

RESCRIPT
let makeWithLocaleAndOptions: (string, {..}) => t

makeWithLocalesAndOptions

RESCRIPT
let makeWithLocalesAndOptions: (array<string>, {..}) => t

makeWithOptions

RESCRIPT
let makeWithOptions: {..} => t

supportedLocalesOf

RESCRIPT
let supportedLocalesOf: array<string> => t

supportedLocalesOfWithOptions

RESCRIPT
let supportedLocalesOfWithOptions: (array<string>, {..}) => t

resolvedOptions

RESCRIPT
let resolvedOptions: t => {..}

timeUnit

RESCRIPT
type timeUnit = [ | #day | #hour | #minute | #month | #quarter | #second | #week | #year ]

format

RESCRIPT
let format: (t, int, timeUnit) => string

formatToParts

RESCRIPT
let formatToParts: ( t, int, timeUnit, ) => array< {\"type\": string, \"unit\": option<string>, \"value\": string}, >