Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- today :: Expr Day
- toDay :: Expr UTCTime -> Expr Day
- fromDay :: Expr Day -> Expr UTCTime
- addDays :: Expr Int32 -> Expr Day -> Expr Day
- diffDays :: Expr Day -> Expr Day -> Expr Int32
- subtractDays :: Expr Int32 -> Expr Day -> Expr Day
- now :: Expr UTCTime
- addTime :: Expr CalendarDiffTime -> Expr UTCTime -> Expr UTCTime
- diffTime :: Expr UTCTime -> Expr UTCTime -> Expr CalendarDiffTime
- subtractTime :: Expr CalendarDiffTime -> Expr UTCTime -> Expr UTCTime
- scaleInterval :: Expr Double -> Expr CalendarDiffTime -> Expr CalendarDiffTime
- second :: Expr CalendarDiffTime
- seconds :: Expr Double -> Expr CalendarDiffTime
- minute :: Expr CalendarDiffTime
- minutes :: Expr Double -> Expr CalendarDiffTime
- hour :: Expr CalendarDiffTime
- hours :: Expr Double -> Expr CalendarDiffTime
- day :: Expr CalendarDiffTime
- days :: Expr Double -> Expr CalendarDiffTime
- week :: Expr CalendarDiffTime
- weeks :: Expr Double -> Expr CalendarDiffTime
- month :: Expr CalendarDiffTime
- months :: Expr Double -> Expr CalendarDiffTime
- year :: Expr CalendarDiffTime
- years :: Expr Double -> Expr CalendarDiffTime
Working with Day
toDay :: Expr UTCTime -> Expr Day Source #
Corresponds to calling the date
function with a given time.
addDays :: Expr Int32 -> Expr Day -> Expr Day Source #
Move forward a given number of days from a particular day.
diffDays :: Expr Day -> Expr Day -> Expr Int32 Source #
Find the number of days between two days. Corresponds to the -
operator.
subtractDays :: Expr Int32 -> Expr Day -> Expr Day Source #
Subtract a given number of days from a particular Day
.
Working with UTCTime
addTime :: Expr CalendarDiffTime -> Expr UTCTime -> Expr UTCTime Source #
Add a time interval to a point in time, yielding a new point in time.
diffTime :: Expr UTCTime -> Expr UTCTime -> Expr CalendarDiffTime Source #
Find the duration between two times.
subtractTime :: Expr CalendarDiffTime -> Expr UTCTime -> Expr UTCTime Source #
Subtract a time interval from a point in time, yielding a new point in time.
Working with CalendarDiffTime
seconds :: Expr Double -> Expr CalendarDiffTime Source #
Create a literal interval from a number of seconds.
minutes :: Expr Double -> Expr CalendarDiffTime Source #
Create a literal interval from a number of minutes.
hours :: Expr Double -> Expr CalendarDiffTime Source #
Create a literal interval from a number of hours.
days :: Expr Double -> Expr CalendarDiffTime Source #
Create a literal interval from a number of days.
weeks :: Expr Double -> Expr CalendarDiffTime Source #
Create a literal interval from a number of weeks.