Module
Data.Intl.DateTimeFormat
- Package
- purescript-intl
- Repository
- coot/purescript-intl
#DateTimeComponents Source
type DateTimeComponents a = Variant (custom :: a, hourMinute :: HourMinute, hourMinuteSecond :: HourMinuteSecond, monthDay :: MonthDay, weekdayYearMonthDay :: WeekdayYearMonthDay, weekdayYearMonthDayHourMinuteSecond :: WeekdayYearMonthDayHourMinuteSecond, yearMonth :: YearMonth, yearMonthDay :: YearMonthDay)
#DateTimeFormatOptions Source
data DateTimeFormatOptions a
Constructors
DateTimeFormatOptions { formatMatcher :: Maybe FormatMatcher, hour12 :: Maybe Boolean, localeMatcher :: Maybe LocaleMatcher, timeZone :: Maybe TimeZone } (DateTimeComponents a)
#DateTimeFormat Source
data DateTimeFormat :: Type
#createDateTimeFormat Source
createDateTimeFormat :: forall a. FormatComponent a => LocalesOption -> DateTimeFormatOptions a -> F DateTimeFormat
#formatJSDate Source
formatJSDate :: DateTimeFormat -> JSDate -> String
#formatToParts Source
formatToParts :: DateTimeFormat -> JSDate -> F (Array FormatParts)
Re-exports from Data.Intl.DateTimeFormat.Types
#YearMonthDay Source
newtype YearMonthDay
Constructors
YearMonthDay { day :: NumericRep, month :: MonthRep, year :: NumericRep }
Instances
#YearMonth Source
#WeekdayYearMonthDayHourMinuteSecond Source
newtype WeekdayYearMonthDayHourMinuteSecond
Constructors
WeekdayYearMonthDayHourMinuteSecond { day :: NumericRep, hour :: NumericRep, minute :: NumericRep, month :: MonthRep, second :: NumericRep, weekday :: StringRep, year :: NumericRep }
Instances
#WeekdayYearMonthDay Source
newtype WeekdayYearMonthDay
Constructors
WeekdayYearMonthDay { day :: NumericRep, month :: MonthRep, weekday :: StringRep, year :: NumericRep }
Instances
#ResolvedOptions Source
newtype ResolvedOptions
Constructors
ResolvedOptions { calendar :: String, day :: Maybe String, era :: Maybe String, hour :: Maybe String, locale :: String, minute :: Maybe String, numberingSystem :: String, second :: Maybe String, timeZone :: String, timeZoneName :: Maybe String, weekday :: Maybe String, year :: Maybe String }
Instances
#MonthDay Source
#HourMinuteSecond Source
newtype HourMinuteSecond
Constructors
HourMinuteSecond { hour :: NumericRep, minute :: NumericRep, second :: NumericRep }
Instances
#HourMinute Source
#readFormatParts Source
readFormatParts :: Foreign -> F FormatParts