Copyright | (c) 2012 Leon P Smith (c) 2012-2014 Janne Hellsten |
---|---|
License | BSD3 |
Maintainer | Janne Hellsten <jjhellst@gmail.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
utcTimeToBuilder :: UTCTime -> Builder Source #
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 Source #
timeZoneToBuilder :: TimeZone -> Builder Source #