irc-fun-client-0.2.0.0: Another library for writing IRC clients.

Safe HaskellNone
LanguageHaskell2010

Network.IRC.Fun.Client.Time

Description

Get the current UTC time and formatted time strings, using auto-update to run the actual action periodically and by demand. In other words, these functions can safely be used at high frequency.

Intended use: Create a single getter in the main thread and pass as needed to other threads for their own use.

Synopsis

Documentation

currentTimeGetter :: IO (IO (UTCTime, String)) Source

Make a getter which returns the current time, and a formatted time string for use in IRC logs.