Module

Data.DateTime.Locale

Package
purescript-datetime
Repository
purescript/purescript-datetime

#Locale Source

data Locale

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

Constructors

Instances

#LocaleName Source

newtype LocaleName

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

Constructors

Instances

#LocalValue Source

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

#LocalDate Source

type LocalDate = LocalValue Date

A date value with a locale.

#LocalTime Source

type LocalTime = LocalValue Time

A time value with a locale.

#LocalDateTime Source

type LocalDateTime = LocalValue DateTime

A date/time value with a locale.