- timeFor :: NominalDiffTime -> Unit -> Direction -> IO UTCTime
- timeSince :: UTCTime -> NominalDiffTime -> Unit -> Direction -> UTCTime
- module Data.Time.Convenience.Data
Documentation
timeFor :: NominalDiffTime -> Unit -> Direction -> IO UTCTimeSource
Produce the time following the specified offset. For example, to get the date and time from two weeks from right now:
timeFor 1 Fortnight FromNow
timeSince :: UTCTime -> NominalDiffTime -> Unit -> Direction -> UTCTimeSource
Given a time, produce a new time offset from that time. For example, to get the date and time from a month after two weeks ago:
do twoWeeksAgo <- timeFor 1 Fortnight Ago return $ timeSince twoWeeksAgo 1 Month FromThat
module Data.Time.Convenience.Data