HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduletiming-convenience-0.1Haskell98

Data.Time.Convenience.Calculators

Synopsis
valueseconds :: Num i => i -> Direction -> i

The number of seconds from the current time in the specified direction. For example, three seconds in the past is:

seconds 3 Ago

And three seconds into the future is:

seconds 3 FromNow

This only produces seconds, it does not produce the actual time. See the functions in Data.Time.Convenience for timeFor and timeSince.