-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Extend vformat to time datatypes -- -- Please see http://hackage.haskell.org/package/vformat-time @package vformat-time @version 0.1.0.0 -- | This module extend vformat to FormatTime datatypes -- -- The specs of FormatTime is same as the second argument of -- "Data.Time.Format.formatTime". -- --

Examples

-- --
--   >>> utc <- getCurrentTime
--   
--   >>> zoned <- getZonedTime
--   
--   >>> let locale = utcToLocalTime (zonedTimeZone zoned) utc
--   
--   >>> format "{} / {} / {}" utc zoned locale
--   "2020-01-21 05:54:41.137832 / 2020-01-21 13:54:45.310354 CST / 2020-01-21 13:54:41.137832"
--   
--   >>> format "{:%Y-%m-%dT%H:%M:%S}" utc
--   "2020-01-21T05:54:41"
--   
module Text.Format.Time -- | Formatter for FormatTime values using a specific -- TimeLocale. formatTimeLocale :: FormatTime t => TimeLocale -> t -> Formatter -- | Formatter for FormatTime values using the -- defaultTimeLocale. formatTime :: FormatTime t => t -> Formatter instance Text.Format.Class.FormatArg Data.Time.Calendar.Days.Day instance Text.Format.Class.FormatArg Data.Time.Clock.Internal.UTCTime.UTCTime instance Text.Format.Class.FormatArg Data.Time.Clock.Internal.UniversalTime.UniversalTime instance Text.Format.Class.FormatArg Data.Time.LocalTime.Internal.TimeZone.TimeZone instance Text.Format.Class.FormatArg Data.Time.LocalTime.Internal.TimeOfDay.TimeOfDay instance Text.Format.Class.FormatArg Data.Time.LocalTime.Internal.LocalTime.LocalTime instance Text.Format.Class.FormatArg Data.Time.LocalTime.Internal.ZonedTime.ZonedTime