Haskell Core Libraries (base package)ParentContentsIndex
System.Locale
Portability portable
Stability provisional
Maintainer libraries@haskell.org
Description
Operations for defining locale-specific date and time formats.
Synopsis
data TimeLocale = TimeLocale {
wDays :: [(String, String)]
months :: [(String, String)]
intervals :: [(String, String)]
amPm :: (String, String)
dateTimeFmt, dateFmt, timeFmt, time12Fmt :: String
}
defaultTimeLocale :: TimeLocale
iso8601DateFormat :: Maybe String -> String
rfc822DateFormat :: String
Documentation
The Locale library provides the ability to adapt to local conventions. At present, it supports only time and date information as used by calendarTimeToString from the System.Time library.
data TimeLocale
Constructors
TimeLocale
wDays :: [(String, String)]full and abbreviated week days
months :: [(String, String)]full and abbreviated months
intervals :: [(String, String)]
amPm :: (String, String)AM/PM symbols
dateTimeFmt, dateFmt, timeFmt, time12Fmt :: Stringformatting strings
Instances
Eq TimeLocale
Ord TimeLocale
Show TimeLocale
defaultTimeLocale :: TimeLocale
iso8601DateFormat :: Maybe String -> String
Normally, ISO-8601 just defines YYYY-MM-DD but we can add a time spec.
rfc822DateFormat :: String
Produced by Haddock version 0.4