HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

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.