Module

Data.DateTime.Locale

Package
purescript-datetime
Repository
purescript/purescript-datetime

#LocaleSource

data Locale

A date/time locale specifying an offset in minutes and an optional name for the locale.

Constructors

Instances

#LocaleNameSource

newtype LocaleName

The name of a date/time locale. For example: "GMT", "MDT", "CET", etc.

Constructors

Instances

#LocalValueSource

data LocalValue a

A value that is subject to a Locale.

There are Functor, Extend, and Comonad instances for LocalValue to enable the inner non-localised value to be manipulated while maintaining the locale.

Constructors

Instances

#LocalDateSource

type LocalDate = LocalValue Date

A date value with a locale.

#LocalTimeSource

type LocalTime = LocalValue Time

A time value with a locale.

#LocalDateTimeSource

type LocalDateTime = LocalValue DateTime

A date/time value with a locale.