HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduletiming-convenience-0.1Haskell98

Data.Time.Convenience

  • 2 values

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