time-1.6.0.1: A time library

Safe HaskellSafe
LanguageHaskell2010

Data.Time.Clock.POSIX

Description

POSIX time, if you need to deal with timestamps and the like. Most people won't need this module.

Synopsis

Documentation

posixDayLength :: NominalDiffTime #

86400 nominal seconds in every day

type POSIXTime = NominalDiffTime #

POSIX time is the nominal time since 1970-01-01 00:00 UTC

To convert from a CTime or EpochTime, use realToFrac.

getPOSIXTime :: IO POSIXTime #

Get the current POSIX time from the system clock.

getCurrentTime :: IO UTCTime #

Get the current UTC time from the system clock.