hsdns-1.1Source codeContentsIndex
System.Posix.GetTimeOfDay
PortabilityHaskell 2-pre
Stabilityprovisional
Maintainersimons@cryp.to
Description
A foreign function interface to gettimeofday(2).
Synopsis
data Timeval = Timeval CTime Int32
data Timezone
getTimeOfDay :: Ptr Timeval -> IO ()
gettimeofday :: Ptr Timeval -> Ptr Timezone -> IO CInt
Documentation
data Timeval Source
Marshaling for C's struct timeval.
Constructors
Timeval CTime Int32
show/hide Instances
data Timezone Source
Not really implemented by anyone; so we provide just a place-holder. Pass nullPtr to gettimeofday.
getTimeOfDay :: Ptr Timeval -> IO ()Source
Write the current time as a Timeval. The time is returned in local time, no time zone correction takes place. Signals errors with throwErrno.
gettimeofday :: Ptr Timeval -> Ptr Timezone -> IO CIntSource
The gettimeofday(2) system call.
Produced by Haddock version 2.4.2