time-1.1.3: A time librarySource codeContentsIndex
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
posixDayLength :: NominalDiffTime
type POSIXTime = NominalDiffTime
posixSecondsToUTCTime :: POSIXTime -> UTCTime
utcTimeToPOSIXSeconds :: UTCTime -> POSIXTime
getPOSIXTime :: IO POSIXTime
Documentation
posixDayLength :: NominalDiffTimeSource
86400 nominal seconds in every day
type POSIXTime = NominalDiffTimeSource

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

To convert from a Foreign.C.CTime or System.Posix.EpochTime, use realToFrac.

posixSecondsToUTCTime :: POSIXTime -> UTCTimeSource
utcTimeToPOSIXSeconds :: UTCTime -> POSIXTimeSource
getPOSIXTime :: IO POSIXTimeSource
Get the current POSIX time from the system clock.
Produced by Haddock version 2.4.2