Copyright | (c) The University of Glasgow 2001 |
---|---|
License | BSD3 (see LICENSE file) |
Maintainer | libraries@haskell.org |
Stability | stable |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
This module 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
module in the
old-time
package.
Synopsis
- data TimeLocale = TimeLocale { }
- defaultTimeLocale :: TimeLocale
- iso8601DateFormat :: Maybe String -> String
- rfc822DateFormat :: String
Documentation
data TimeLocale Source #
Instances
Eq TimeLocale Source # | |
Defined in System.Locale (==) :: TimeLocale -> TimeLocale -> Bool Source # (/=) :: TimeLocale -> TimeLocale -> Bool Source # |
|
Ord TimeLocale Source # | |
Defined in System.Locale 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 # |
|
Show TimeLocale Source # | |
Defined in System.Locale |
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 .