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

Moduletime-hourglass-0.3.0Haskell2010

Time.System

Get the system timezone and current time value in multiple formats.

  • 6 values

Current time, in computer-friendly format

2 declarations
valuetimeCurrent :: IO Elapsed
#

Get the current number of non-leap seconds elapsed since the Unix epoch.

Get the current number of non-leap seconds and nanoseconds since the Unix epoch (1970-01-01 00:00:00 UTC).

Current time, in human-friendly format

3 declarations
valuedateCurrent :: IO DateTime
#

Get the current global date.

This is equivalent to:

timeGetDateTimeOfDay `fmap` timeCurrentP

System timezone

1 declaration