HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduletiming-convenience-0.1Haskell98

Data.Time.Convenience.Calculators

  • 6 values
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.

valueminutes :: Num i => i -> Direction -> i
#

Similar to seconds, this produces the number of minutes from the current time in the specified direction, in seconds. It is most useful as an offset for functions in the Data.Time.Convenience module.

valuehours :: Num i => i -> Direction -> i
#

Similar to seconds, this produces the number of hours from the current time in the specified direction, in seconds. It is most useful as an offset for functions in the Data.Time.Convenience module. See seconds for an example.

valuedays :: Num i => i -> Direction -> i
#

Similar to seconds, this produces the number of days from the current time in the specified direction, in seconds. It is most useful as an offset for functions in the Data.Time.Convenience module. See seconds for an example.

valueweeks :: Num i => i -> Direction -> i
#

Similar to seconds, this produces the number of weeks from the current time in the specified direction, in seconds. It is most useful as an offset for functions in the Data.Time.Convenience module. See seconds for an example.

valuefortnights :: Num i => i -> Direction -> i
#

Similar to seconds, this produces the number of fortnights (two weeks) from the current time in the specified direction, in seconds. It is most useful as an offset for functions in the Data.Time.Convenience module. See seconds for an example.