ref: 7d2f32a9e5e2b27faa217fd3d9d2d2092f052861
dir: /cpphscompat/Data/Time/Clock.hs/
-- A hack to be able to compile cpphs. -- We need a proper package for this. module Data.Time.Clock( UTCTime(..), getCurrentTime, ) where import Prelude import System.IO.TimeMilli -- Second since 1970, probably newtype UTCTime = UTCTime Int deriving (Show) getCurrentTime :: IO UTCTime getCurrentTime = do t <- getTimeMilli return $ UTCTime $ t `quot` 1000