Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- prettyTimeAutoFromNow :: UTCTime -> IO String
- prettyTimeAuto :: UTCTime -> UTCTime -> String
- prettyDayAutoFromNow :: Day -> IO String
- prettyDayAuto :: Day -> Day -> String
- timeAgo :: NominalDiffTime -> TimeAgo
- timeAgoToDiffTime :: TimeAgo -> NominalDiffTime
- daysAgo :: Integer -> DaysAgo
- daysAgoToDays :: DaysAgo -> Integer
- data TimeAgo = TimeAgo {}
- data DaysAgo = DaysAgo {}
- renderDaysAgoAuto :: DaysAgo -> String
- renderTimeAgoAuto :: TimeAgo -> String
- picoSecondsPerSecond :: Integral a => a
- secondsPerMinute :: Integral a => a
- minutesPerHour :: Integral a => a
- hoursPerDay :: Integral a => a
- daysPerWeek :: Integral a => a
Documentation
timeAgo :: NominalDiffTime -> TimeAgo Source #
daysAgoToDays :: DaysAgo -> Integer Source #
Helper Types
Instances
DaysAgo | |
|
Instances
Eq DaysAgo Source # | |
Show DaysAgo Source # | |
Generic DaysAgo Source # | |
Validity DaysAgo Source # | |
Defined in Text.Time.Pretty.TimeAgo validate :: DaysAgo -> Validation # | |
type Rep DaysAgo Source # | |
Defined in Text.Time.Pretty.TimeAgo type Rep DaysAgo = D1 ('MetaData "DaysAgo" "Text.Time.Pretty.TimeAgo" "pretty-relative-time-0.3.0.0-GryKipa7fbpIc5GP7KFtxY" 'False) (C1 ('MetaCons "DaysAgo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "daysAgoSign") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ordering) :*: S1 ('MetaSel ('Just "daysAgoYears") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)) :*: (S1 ('MetaSel ('Just "daysAgoMonths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: (S1 ('MetaSel ('Just "daysAgoWeeks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "daysAgoDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))))) |
Rendering
renderDaysAgoAuto :: DaysAgo -> String Source #
renderTimeAgoAuto :: TimeAgo -> String Source #
Constants
picoSecondsPerSecond :: Integral a => a Source #
secondsPerMinute :: Integral a => a Source #
minutesPerHour :: Integral a => a Source #
hoursPerDay :: Integral a => a Source #
daysPerWeek :: Integral a => a Source #