sqlite-simple-0.4.19.0: Mid-Level SQLite client library

Copyright | (c) 2012 Leon P Smith (c) 2012-2014 Janne Hellsten
License | BSD3
Maintainer | Janne Hellsten <jjhellst@gmail.com>
Safe Haskell | None
Language | Haskell2010

Database.SQLite.Simple.Time.Implementation

Description

Adapted from Leon P Smith's code for SQLite.

See http://sqlite.org/lang_datefunc.html for date formats used in SQLite.

Synopsis

- parseUTCTime :: Text -> Either String UTCTime
- parseDay :: Text -> Either String Day
- utcTimeToBuilder :: UTCTime -> Builder
- dayToBuilder :: Day -> Builder
- timeOfDayToBuilder :: TimeOfDay -> Builder
- timeZoneToBuilder :: TimeZone -> Builder

# Documentation

parseUTCTime :: Text -> Either String UTCTime #

parseDay :: Text -> Either String Day #

utcTimeToBuilder :: UTCTime -> Builder #

Output YYYY-MM-DD HH:MM:SS with an optional .SSS fraction part. Explicit timezone attribute is not appended as per SQLite3's datetime conventions.

dayToBuilder :: Day -> Builder #

timeOfDayToBuilder :: TimeOfDay -> Builder #

timeZoneToBuilder :: TimeZone -> Builder #