old-locale-1.0.0.7: locale library

Copyright(c) The University of Glasgow 2001
LicenseBSD3 (see LICENSE file)
Maintainerlibraries@haskell.org
Stabilitystable
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

System.Locale

Description

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

Documentation

data TimeLocale #

Constructors

TimeLocale 

Fields

iso8601DateFormat :: Maybe String -> String #

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 #

Format string according to RFC822.