Copyright | (C) 2017 Jason Johnson |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Jason Johnson <jason.johnson.081@gmail.com> |
Stability | experimental |
Portability | POSIX, Windows |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This is the module for CalendarDate
and CalendarDateTime
in the Gregorian
calendar.
Synopsis
- calendarDate :: DayOfMonth -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian)
- ncalendarDate :: DayOfMonth -> Month Gregorian -> Year -> Maybe (NCalendarDate Gregorian)
- fromNthDay :: DayNth -> DayOfWeek Gregorian -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian)
- fromWeekDate :: WeekNumber -> DayOfWeek Gregorian -> Year -> Maybe (CalendarDate Gregorian)
- data family Month cal
- data family DayOfWeek cal
- data Gregorian
Constructors
calendarDate :: DayOfMonth -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian) Source #
Smart constuctor for Gregorian calendar date.
ncalendarDate :: DayOfMonth -> Month Gregorian -> Year -> Maybe (NCalendarDate Gregorian) Source #
Smart constuctor for Gregorian calendar date.
fromNthDay :: DayNth -> DayOfWeek Gregorian -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian) Source #
Smart constuctor for Gregorian calendar date based on relative month day.
fromWeekDate :: WeekNumber -> DayOfWeek Gregorian -> Year -> Maybe (CalendarDate Gregorian) Source #
Smart constuctor for Gregorian calendar date based on week date. Note that this method assumes weeks start on Sunday and the first week of the year is the one which has at least one day in the new year. For ISO compliant behavior use this constructor from the ISO module
Types
data family Month cal Source #
Instances
data family DayOfWeek cal Source #