Module
Web.Intl.RelativeTimeFormat
- Package
- purescript-web-intl
- Repository
- ptrfrncsmrph/purescript-web-intl
#RelativeTimeFormat Source
data RelativeTimeFormat
#RelativeTimeFormatOptions Source
type RelativeTimeFormatOptions :: Row Type
type RelativeTimeFormatOptions = (localeMatcher :: String, numeric :: String, style :: String)
#new Source
new :: forall options options'. Union options options' RelativeTimeFormatOptions => NonEmptyArray Locale -> Record options -> Effect RelativeTimeFormat
#supportedLocalesOf Source
supportedLocalesOf :: forall options options'. Union options options' RelativeTimeFormatOptions => NonEmptyArray Locale -> Record options -> Array String
#format Source
format :: RelativeTimeFormat -> Int -> RelativeTimeUnit -> String
#formatToParts Source
formatToParts :: RelativeTimeFormat -> Int -> RelativeTimeUnit -> Array { type :: String, value :: String }