Module

Web.Intl.RelativeTimeFormat

Package
purescript-web-intl
Repository
ptrfrncsmrph/purescript-web-intl

#RelativeTimeFormat Source

#RelativeTimeFormatOptions Source

type RelativeTimeFormatOptions :: Row Typetype RelativeTimeFormatOptions = (localeMatcher :: String, numeric :: String, style :: String)

#new Source

new :: forall options options'. Union options options' RelativeTimeFormatOptions => Array String -> Record options -> Effect RelativeTimeFormat

#supportedLocalesOf Source

supportedLocalesOf :: forall options options'. Union options options' LocaleOptions => Array String -> Record options -> Array String

#formatToParts Source

formatToParts :: RelativeTimeFormat -> Int -> String -> Array { type :: String, value :: String }