- data CalendarTime = CalendarTime {}
- toDay :: CalendarTime -> Maybe Day
- withDay :: CalendarTime -> Day -> CalendarTime
- toTimeOfDay :: CalendarTime -> Maybe TimeOfDay
- daysInYear :: CalendarTimeConvertible a => a -> Int
- lastDayOfMonth :: CalendarTimeConvertible a => a -> Int
- weekNumber :: CalendarTimeConvertible a => StartOfWeek -> a -> Maybe Int
- class CalendarTimeConvertible t where
- toCalendarTime :: t -> CalendarTime
- fromCalendarTime :: CalendarTime -> Maybe t
Calendar Time
data CalendarTime Source
A representation of calendar time separated into year, month, day, and so on.
CalendarTime | |
|
withDay :: CalendarTime -> Day -> CalendarTimeSource
Change y-m-d in CalendarTime
toTimeOfDay :: CalendarTime -> Maybe TimeOfDaySource
Convert to a TimeOfDay
daysInYear :: CalendarTimeConvertible a => a -> IntSource
lastDayOfMonth :: CalendarTimeConvertible a => a -> IntSource
weekNumber :: CalendarTimeConvertible a => StartOfWeek -> a -> Maybe IntSource
Calendar Time Convertible
class CalendarTimeConvertible t whereSource
The class of types which can be converted to a CalendarTime
toCalendarTime :: t -> CalendarTimeSource
Convert to a CalendarTime
fromCalendarTime :: CalendarTime -> Maybe tSource
Convert from a CalendarTime