HORIZON HASKELLDocslts/ghc-9.14.xb9228482026-10-12Search names, modules, packages, or :: a typeCtrl K

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

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