Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
A date.
type DayOfMonth = Int Source #
A day of month.
Calculate the number of weekdays between two dates.
>>>
weekdays (Date 2016 01 04) (Date 2016 01 10)
5
>>>
weekdays (Date 2016 01 01) (Date 2016 12 31)
261