Safe Haskell | None |
---|---|
Language | Haskell2010 |
- futureUTCTime :: Integral a => TimeSpan a -> IO UTCTime
- timeDiffMs :: UTCTime -> UTCTime -> Int
Documentation
futureUTCTime :: Integral a => TimeSpan a -> IO UTCTime Source #
getCurrentTime
+/- offset
from unit test:
getCurrentTime futureUTCTime $ Milli 100 futureUTCTime $ Sec 3 2016-12-12 15:34:03.138798524 UTC 2016-12-12 15:34:03.23893359 UTC 2016-12-12 15:34:06.138978355 UTC