| Copyright | (c) 2015-2016 Bryan O'Sullivan (c) 2020 Dong Han |
|---|---|
| License | BSD3 |
| Maintainer | Dong <winterland1989@gmail.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Z.Data.Builder.Time
Contents
Description
Builders for dates and times.
Synopsis
- day :: Day -> Builder ()
- timeOfDay :: TimeOfDay -> Builder ()
- timeZone :: TimeZone -> Builder ()
- utcTime :: UTCTime -> Builder ()
- localTime :: LocalTime -> Builder ()
- zonedTime :: ZonedTime -> Builder ()
- twoDigits :: Int -> (Word8, Word8)
- toGregorian' :: Day -> (Integer, Int, Int)
- toGregorianInt64 :: Int64 -> (Integer, Int, Int)
Documentation
timeZone :: TimeZone -> Builder () Source #
Timezone format in +HH:MM, with single letter Z for +00:00.
utcTime :: UTCTime -> Builder () Source #
Write UTCTime in ISO8061 YYYY-MM-DDTHH:MM:SS.SSSZ(time zone will always be Z).
internal
toGregorian' :: Day -> (Integer, Int, Int) Source #
Faster toGregorian with toGregorianInt64 as the common case path.