Copyright | 2014-2018 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Data.Time.Locale.Compat
Description
This module provides compatibility module name for TimeLocale of old-locale or time-1.5.
Synopsis
Time locale interface names
data TimeLocale Source #
Instances
Show TimeLocale | |
Defined in Data.Time.Format.Locale | |
Eq TimeLocale | |
Defined in Data.Time.Format.Locale Methods (==) :: TimeLocale -> TimeLocale -> Bool Source # (/=) :: TimeLocale -> TimeLocale -> Bool Source # | |
Ord TimeLocale | |
Defined in Data.Time.Format.Locale Methods compare :: TimeLocale -> TimeLocale -> Ordering Source # (<) :: TimeLocale -> TimeLocale -> Bool Source # (<=) :: TimeLocale -> TimeLocale -> Bool Source # (>) :: TimeLocale -> TimeLocale -> Bool Source # (>=) :: TimeLocale -> TimeLocale -> Bool Source # max :: TimeLocale -> TimeLocale -> TimeLocale Source # min :: TimeLocale -> TimeLocale -> TimeLocale Source # |
defaultTimeLocale :: TimeLocale Source #
Locale representing American usage.
knownTimeZones
contains only the ten time-zones mentioned in RFC 822 sec. 5:
"UT", "GMT", "EST", "EDT", "CST", "CDT", "MST", "MDT", "PST", "PDT".
Note that the parsing functions will regardless parse "UTC", single-letter military time-zones, and +HHMM format.
Date format interface names
iso8601DateFormat :: Maybe String -> String Source #
Construct format string according to ISO-8601.
The Maybe String
argument allows to supply an optional time specification. E.g.:
iso8601DateFormat
Nothing == "%Y-%m-%d" -- i.e.YYYY-MM-DD
iso8601DateFormat
(Just "%H:%M:%S") == "%Y-%m-%dT%H:%M:%S" -- i.e.YYYY-MM-DDTHH:MM:SS
rfc822DateFormat :: String Source #
Format string according to RFC822.