-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | locale library
--   
--   This package provides the ability to adapt to locale conventions such
--   as date and time formats.
@package old-locale
@version 1.0.0.7

-- | 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.
module System.Locale
data TimeLocale
TimeLocale :: [(String, String)] -> [(String, String)] -> [(String, String)] -> (String, String) -> String -> TimeLocale

-- | full and abbreviated week days
[wDays] :: TimeLocale -> [(String, String)]

-- | full and abbreviated months
[months] :: TimeLocale -> [(String, String)]
[intervals] :: TimeLocale -> [(String, String)]

-- | AM/PM symbols
[amPm] :: TimeLocale -> (String, String)

-- | formatting strings

-- | formatting strings

-- | formatting strings

-- | formatting strings
[dateTimeFmt, dateFmt, timeFmt, time12Fmt] :: TimeLocale -> String
defaultTimeLocale :: TimeLocale

-- | 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
--   
iso8601DateFormat :: Maybe String -> String

-- | Format string according to RFC822.
rfc822DateFormat :: String
instance GHC.Show.Show System.Locale.TimeLocale
instance GHC.Classes.Ord System.Locale.TimeLocale
instance GHC.Classes.Eq System.Locale.TimeLocale
