lambdabot-utils-4.1: Utility libraries for the advanced IRC bot, LambdabotSource codeContentsIndex
Lambdabot.AltTime
Description
Time compatibility layer
Synopsis
data ClockTime
getClockTime :: IO ClockTime
diffClockTimes :: ClockTime -> ClockTime -> TimeDiff
addToClockTime :: TimeDiff -> ClockTime -> ClockTime
timeDiffPretty :: TimeDiff -> String
module System.Time
Documentation
data ClockTime Source
Wrapping ClockTime (which doesn't provide a Read instance!) seems easier than talking care of the serialization of UserStatus ourselves.
show/hide Instances
getClockTime :: IO ClockTimeSource
Retrieve the current clocktime
diffClockTimes :: ClockTime -> ClockTime -> TimeDiffSource
Difference of two clock times
addToClockTime :: TimeDiff -> ClockTime -> ClockTimeSource
addToClockTime d t adds a time difference d and a -- clock time t to yield a new clock time.
timeDiffPretty :: TimeDiff -> StringSource

Pretty-print a TimeDiff. Both positive and negative Timediffs produce the same output.

14d 17h 8m 53s

module System.Time
Produced by Haddock version 2.4.2