{-# LANGUAGE CPP #-}
module System.PosixCompat.Time (
epochTime
) where
#ifndef mingw32_HOST_OS
import System.Posix.Time
#else
import Control.Monad (liftM)
import System.Posix.Types (EpochTime)
import System.PosixCompat.Internal.Time (
getClockTime, clockTimeToEpochTime
)
epochTime :: IO EpochTime
epochTime = liftM clockTimeToEpochTime getClockTime
#endif