Module
Data.Date
- Package
- purescript-datetime
- Repository
- purescript/purescript-datetime
#canonicalDate Source
canonicalDate :: Year -> Month -> Day -> Date
Constructs a date from year, month, and day components. The resulting date components may not be identical to the input values, as the date will be canonicalised according to the Gregorian calendar. For example, date values for the invalid date 2016-02-31 will be corrected to 2016-03-02.
#isLeapYear Source
isLeapYear :: Year -> Boolean
Checks whether a year is a leap year according to the proleptic Gregorian calendar.
#lastDayOfMonth Source
lastDayOfMonth :: Year -> Month -> Day
Get the final day of a month and year, accounting for leap years.
Re-exports from Data.Date.Component
- Modules
- Data.
Date - Data.
Date. Component - Data.
Date. Component. Gen - Data.
Date. Gen - Data.
DateTime - Data.
DateTime. Gen - Data.
DateTime. Instant - Data.
Interval - Data.
Interval. Duration - Data.
Interval. Duration. Iso - Data.
Time - Data.
Time. Component - Data.
Time. Component. Gen - Data.
Time. Duration - Data.
Time. Duration. Gen - Data.
Time. Gen