Module

JS.LocaleSensitive.Date

Package
purescript-js-intl
Repository
pete-murphy/purescript-js-intl

#toLocaleString Source

toLocaleString :: forall provided. ConvertOptionsWithDefaults ToDateTimeFormatOptions (Record DateTimeFormatOptions) (Record provided) (Record DateTimeFormatOptions) => Array Locale -> Record provided -> DateTime -> Effect String

Returns a string with a language-sensitive representation of a date and time in the user agent's timezone. When formatting large numbers of dates, it is better to use Intl.DateTimeFormat.format.

#toLocaleDateString Source

toLocaleDateString :: forall provided. ConvertOptionsWithDefaults ToDateTimeFormatOptions (Record DateTimeFormatOptions) (Record provided) (Record DateTimeFormatOptions) => Array Locale -> Record provided -> DateTime -> Effect String

Returns a string with a language-sensitive representation of a date in the user agent's timezone. When formatting large numbers of dates, it is better to use Intl.DateTimeFormat.format.

#toLocaleTimeString Source

toLocaleTimeString :: forall provided. ConvertOptionsWithDefaults ToDateTimeFormatOptions (Record DateTimeFormatOptions) (Record provided) (Record DateTimeFormatOptions) => Array Locale -> Record provided -> DateTime -> Effect String

Returns a string with a language-sensitive representation of a time in the user agent's timezone. When formatting large numbers of dates, it is better to use Intl.DateTimeFormat.format.