hora-2.2.0: date time

Safe HaskellNone
LanguageHaskell2010

Data.Time.Hora.Future

Synopsis

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

class PicoDiff a where Source #

Difference between times with pico precision

return TimeSpan for ease of conversion with Data.Time.Hora.Span

Minimal complete definition

(-)

Methods

(-) :: a -> a -> TimeSpan Integer Source #

Instances
PicoDiff Pico Source # 
Instance details

Defined in Data.Time.Hora.Future

Methods

(-) :: Pico -> Pico -> TimeSpan Integer Source #

PicoDiff UTCTime Source #

assuming both times are in the same date. Day part is discarded

Instance details

Defined in Data.Time.Hora.Future