HDBC-2.4.0.4: Haskell Database Connectivity
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.HDBC.Locale

Synopsis

Documentation

defaultTimeLocale :: TimeLocale #

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.

iso8601DateFormat :: Maybe String -> String Source #

As the semantic of System.Locale.iso8601DateFormat has changed with old-locale-1.0.0.2 in a non-compatible way, we now define our own (compatible) version of it.

oldIso8601DateFormat :: Maybe String -> String Source #

HDBC would in versions up to and including 2.4.0.3 use this time format string to serialize timestamps. To keep being able to deserialize timestamps serialized on database engines that keep the representation intact (e.g. SQLite) we keep this format string around, such that we can fall back to it.