| Adding, Subtracting and Comparing Days Given a Day, we can perform simple arithmetic and comparisons, such as adding: Subtract: and even find the difference: note that the order matters: Syntax
[addDays](http://hackage.haskell.org/package/time-1.6.0.1/docs/Data-Time-Calendar.html#v:addDays) :: Integer -> Day -> Day
[diffDays](http://hackage.haskell.org/package/time-1.6.0.1/docs/Data-Time-Calendar.html#v:diffDays) :: Day -> Day -> Integer
[fromGregorian](http://hackage.haskell.org/package/time-1.6.0.1/docs/Data-Time-Calendar.html#v:fromGregorian) :: Integer -> Int -> Int -> Day
[getCurrentTime](http://hackage.haskell.org/package/time-1.6.0.1/docs/Data-Time-Clock.html#v:getCurrentTime) :: IO UTCTime
The Data.Time module from time package (opens new window) provides support for retrieving & manipulating date & time values: |