-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Print time information in friendly ways -- -- Print time information in friendly ways @package friendly-time @version 0.2.2 -- | Prints a UTCTime as a few seconds ago or 3 -- days ago and similar. module Data.Time.Format.Human -- | Based on humanReadableTimeDiff found in -- https://github.com/snoyberg/haskellers/blob/master/Haskellers.hs, -- https://github.com/snoyberg/haskellers/blob/master/LICENSE humanReadableTime :: UTCTime -> IO String -- | A pure form, takes current time as an argument humanReadableTime' :: UTCTime -> UTCTime -> String -- | I18N version of humanReadableTime humanReadableTimeI18N :: HumanTimeLocale -> UTCTime -> IO String -- | I18N version of humanReadableTime' humanReadableTimeI18N' :: HumanTimeLocale -> UTCTime -> UTCTime -> String data HumanTimeLocale HumanTimeLocale :: String -> (String -> String) -> String -> (String -> String) -> String -> (String -> String) -> (String -> String) -> (String -> String) -> (String -> String) -> (String -> String) -> (String -> String) -> TimeLocale -> HumanTimeLocale justNow :: HumanTimeLocale -> String secondsAgo :: HumanTimeLocale -> String -> String oneMinuteAgo :: HumanTimeLocale -> String minutesAgo :: HumanTimeLocale -> String -> String oneHourAgo :: HumanTimeLocale -> String aboutHoursAgo :: HumanTimeLocale -> String -> String at :: HumanTimeLocale -> String -> String daysAgo :: HumanTimeLocale -> String -> String weekAgo :: HumanTimeLocale -> String -> String weeksAgo :: HumanTimeLocale -> String -> String onYear :: HumanTimeLocale -> String -> String locale :: HumanTimeLocale -> TimeLocale defaultHumanTimeLocale :: HumanTimeLocale