chronos-0.4: A performant time library
Chronos.Day
Synopsis
add :: Int -> Day -> Day Source #
Offset by the given number of days. To accomplish subtraction, provide a negative number.
diff :: Day -> Day -> Int Source #
Take the difference between two days.
today :: IO Day Source #
Gets the current POSIX day. This does not take the user's time zone into account.
tomorrow :: IO Day Source #
yesterday :: IO Day Source #
toDate :: Day -> Date Source #
fromDate :: Date -> Day Source #