Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- 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 -> CalendarTime Source
Change y-m-d in CalendarTime
toTimeOfDay :: CalendarTime -> Maybe TimeOfDay Source
Convert to a TimeOfDay
daysInYear :: CalendarTimeConvertible a => a -> Int Source
lastDayOfMonth :: CalendarTimeConvertible a => a -> Int Source
weekNumber :: CalendarTimeConvertible a => StartOfWeek -> a -> Maybe Int Source
Calendar Time Convertible
class CalendarTimeConvertible t where Source
The class of types which can be converted to a CalendarTime
toCalendarTime :: t -> CalendarTime Source
Convert to a CalendarTime
fromCalendarTime :: CalendarTime -> Maybe t Source
Convert from a CalendarTime