Module
JS.Intl.DateTimeFormat
- Package
- purescript-js-intl
- Repository
- pete-murphy/purescript-js-intl
#DateTimeFormat Source
data DateTimeFormat
Language-sensitive date and time formatting
#DateTimeFormatOptions Source
type DateTimeFormatOptions :: Row Type
type DateTimeFormatOptions = (dateStyle :: String, day :: String, dayPeriod :: String, era :: String, formatMatcher :: String, fractionalSecondDigits :: Int, hour :: String, hour12 :: Boolean, hourCycle :: String, localeMatcher :: String, minute :: String, month :: String, second :: String, timeStyle :: String, timeZone :: String, timeZoneName :: String, weekday :: String, year :: String)
#ToDateTimeFormatOptions Source
data ToDateTimeFormatOptions
Instances
ConvertOption ToDateTimeFormatOptions "localeMatcher" LocaleMatcher String
ConvertOption ToDateTimeFormatOptions "localeMatcher" String String
ConvertOption ToDateTimeFormatOptions "weekday" Weekday String
ConvertOption ToDateTimeFormatOptions "weekday" String String
ConvertOption ToDateTimeFormatOptions "era" Era String
ConvertOption ToDateTimeFormatOptions "era" String String
ConvertOption ToDateTimeFormatOptions "year" Year String
ConvertOption ToDateTimeFormatOptions "year" String String
ConvertOption ToDateTimeFormatOptions "month" Month String
ConvertOption ToDateTimeFormatOptions "month" String String
ConvertOption ToDateTimeFormatOptions "day" Day String
ConvertOption ToDateTimeFormatOptions "day" String String
ConvertOption ToDateTimeFormatOptions "hour" Hour String
ConvertOption ToDateTimeFormatOptions "hour" String String
ConvertOption ToDateTimeFormatOptions "minute" Minute String
ConvertOption ToDateTimeFormatOptions "minute" String String
ConvertOption ToDateTimeFormatOptions "second" Second String
ConvertOption ToDateTimeFormatOptions "second" String String
ConvertOption ToDateTimeFormatOptions "dayPeriod" DayPeriod String
ConvertOption ToDateTimeFormatOptions "dayPeriod" String String
ConvertOption ToDateTimeFormatOptions "timeZoneName" TimeZoneName String
ConvertOption ToDateTimeFormatOptions "timeZoneName" String String
ConvertOption ToDateTimeFormatOptions "formatMatcher" FormatMatcher String
ConvertOption ToDateTimeFormatOptions "formatMatcher" String String
ConvertOption ToDateTimeFormatOptions "hour12" Boolean Boolean
ConvertOption ToDateTimeFormatOptions "timeZone" String String
ConvertOption ToDateTimeFormatOptions "hourCycle" HourCycle String
ConvertOption ToDateTimeFormatOptions "hourCycle" String String
ConvertOption ToDateTimeFormatOptions "fractionalSecondDigits" Int Int
ConvertOption ToDateTimeFormatOptions "dateStyle" DateStyle String
ConvertOption ToDateTimeFormatOptions "dateStyle" String String
ConvertOption ToDateTimeFormatOptions "timeStyle" TimeStyle String
ConvertOption ToDateTimeFormatOptions "timeStyle" String String
#new Source
new :: forall provided. ConvertOptionsWithDefaults ToDateTimeFormatOptions (Record DateTimeFormatOptions) (Record provided) (Record DateTimeFormatOptions) => Array Locale -> Record provided -> Effect DateTimeFormat
#supportedLocalesOf Source
supportedLocalesOf :: forall provided. ConvertOptionsWithDefaults ToDateTimeFormatOptions (Record DateTimeFormatOptions) (Record provided) (Record DateTimeFormatOptions) => Array Locale -> Record provided -> Array String
#format Source
format :: DateTimeFormat -> DateTime -> String
Formats a date according to the locale and formatting options of the
DateTimeFormat
#formatRange Source
formatRange :: DateTimeFormat -> DateTime -> DateTime -> String
Formats a date range in the most concise way based on the locales and
options provided for this DateTimeFormat
instance
#formatRangeToParts Source
formatRangeToParts :: DateTimeFormat -> DateTime -> DateTime -> Array { type :: String, value :: String }
Returns an array of locale-specific tokens representing each part of the
formatted date range produced by the DateTimeFormat
instance
#formatToParts Source
formatToParts :: DateTimeFormat -> DateTime -> Array { type :: String, value :: String }
Returns an array of locale-specific tokens representing each part of the
formatted date produced by the DateTimeFormat
instance
#convertOptionsWithDefaults Source
convertOptionsWithDefaults :: forall provided all. ConvertOptionsWithDefaults ToDateTimeFormatOptions (Record DateTimeFormatOptions) provided all => provided -> all
- Modules
- JS.
Intl - JS.
Intl. Collator - JS.
Intl. DateTimeFormat - JS.
Intl. DisplayNames - JS.
Intl. ListFormat - JS.
Intl. Locale - JS.
Intl. NumberFormat - JS.
Intl. Options. AvailableCanonical - JS.
Intl. Options. CaseFirst - JS.
Intl. Options. Collation - JS.
Intl. Options. CompactDisplay - JS.
Intl. Options. CurrencyDisplay - JS.
Intl. Options. CurrencySign - JS.
Intl. Options. DateStyle - JS.
Intl. Options. Day - JS.
Intl. Options. DayPeriod - JS.
Intl. Options. DisplayNamesType - JS.
Intl. Options. Era - JS.
Intl. Options. Fallback - JS.
Intl. Options. FormatMatcher - JS.
Intl. Options. Granularity - JS.
Intl. Options. Hour - JS.
Intl. Options. HourCycle - JS.
Intl. Options. Internal. Unsafe - JS.
Intl. Options. LanguageDisplay - JS.
Intl. Options. ListFormatType - JS.
Intl. Options. LocaleMatcher - JS.
Intl. Options. Minute - JS.
Intl. Options. Month - JS.
Intl. Options. Notation - JS.
Intl. Options. NumberFormatStyle - JS.
Intl. Options. Numeric - JS.
Intl. Options. PluralCategory - JS.
Intl. Options. PluralRulesType - JS.
Intl. Options. RelativeTimeUnit - JS.
Intl. Options. RoundingIncrement - JS.
Intl. Options. RoundingMode - JS.
Intl. Options. RoundingPriority - JS.
Intl. Options. Second - JS.
Intl. Options. Sensitivity - JS.
Intl. Options. SignDisplay - JS.
Intl. Options. Style - JS.
Intl. Options. TimeStyle - JS.
Intl. Options. TimeZoneName - JS.
Intl. Options. TrailingZeroDisplay - JS.
Intl. Options. UnitDisplay - JS.
Intl. Options. Usage - JS.
Intl. Options. UseGrouping - JS.
Intl. Options. Weekday - JS.
Intl. Options. Year - JS.
Intl. PluralRules - JS.
Intl. RelativeTimeFormat - JS.
Intl. Segmenter - JS.
LocaleSensitive. Date - JS.
LocaleSensitive. Number - JS.
LocaleSensitive. String