Module
Web.Intl.DateTimeFormat
- Package
- purescript-web-intl
- Repository
- ptrfrncsmrph/purescript-web-intl
#DateTimeFormat Source
data DateTimeFormat
#DateTimeFormatOptions Source
type DateTimeFormatOptions :: Row Type
type DateTimeFormatOptions = (dateStyle :: String, day :: String, era :: String, formatMatcher :: String, hour :: String, hour12 :: Boolean, hourCycle :: String, localeMatcher :: String, minute :: String, month :: String, second :: String, timeStyle :: String, timeZone :: String, timeZoneName :: String, weekday :: String, year :: String)
#new Source
new :: forall options options'. Union options options' DateTimeFormatOptions => NonEmptyArray Locale -> Record options -> Effect DateTimeFormat
#supportedLocalesOf Source
supportedLocalesOf :: forall options options'. Union options options' DateTimeFormatOptions => NonEmptyArray Locale -> Record options -> Array String
#formatRange Source
formatRange :: DateTimeFormat -> DateTime -> DateTime -> String
#formatRangeToParts Source
formatRangeToParts :: DateTimeFormat -> DateTime -> DateTime -> Array { type :: String, value :: String }
#formatToParts Source
formatToParts :: DateTimeFormat -> DateTime -> Array { type :: String, value :: String }