module Data.Time.Utils
( utcTimePred
, utcTimeSucc
) where
import Prelude
import Data.Time
( UTCTime, addUTCTime )
utcTimeSucc :: UTCTime -> UTCTime
utcTimeSucc :: UTCTime -> UTCTime
utcTimeSucc = NominalDiffTime -> UTCTime -> UTCTime
addUTCTime (NominalDiffTime -> UTCTime -> UTCTime)
-> NominalDiffTime -> UTCTime -> UTCTime
forall a b. (a -> b) -> a -> b
$ NominalDiffTime -> NominalDiffTime
forall a. Enum a => a -> a
succ NominalDiffTime
0
utcTimePred :: UTCTime -> UTCTime
utcTimePred :: UTCTime -> UTCTime
utcTimePred = NominalDiffTime -> UTCTime -> UTCTime
addUTCTime (NominalDiffTime -> UTCTime -> UTCTime)
-> NominalDiffTime -> UTCTime -> UTCTime
forall a b. (a -> b) -> a -> b
$ NominalDiffTime -> NominalDiffTime
forall a. Enum a => a -> a
pred NominalDiffTime
0