friendly-time-0.4.1: Print time information in friendly ways

Safe HaskellSafe
LanguageHaskell2010

Data.Time.Format.Human

Description

Print a UTCTime as "a few seconds ago" or "3 days ago" and similar.

Synopsis

Documentation

humanReadableTime' Source #

Arguments

:: UTCTime

current time

-> UTCTime 
-> String 

A pure form, takes current time as an argument

humanReadableTimeI18N' Source #

Arguments

:: HumanTimeLocale 
-> UTCTime

current time

-> UTCTime 
-> String 

I18N version of humanReadableTime'

data HumanTimeLocale Source #

Constructors

HumanTimeLocale 

Fields

defaultHumanTimeLocale :: HumanTimeLocale Source #

Default human time locale uses English.