Data.Time.Recurrence
Contents
- data WeekDay
- data Month
- data Moment
- recurBy :: Integer -> [Moment -> [Moment]] -> Moment -> [Moment]
- recur :: [Moment -> [Moment]] -> Moment -> [Moment]
- utcGregorian :: Integer -> Int -> Int -> UTCTime
- utcGregorianWithTime :: Integer -> Int -> Int -> Int -> Int -> Int -> UTCTime
- byMonth :: [Month] -> Moment -> [Moment]
- byWeekNumber :: [Int] -> Moment -> [Moment]
- byYearDay :: [Int] -> Moment -> [Moment]
- byMonthDay :: [Int] -> Moment -> [Moment]
- byDay :: [WeekDay] -> Moment -> [Moment]
The WeekDay type
Symbolic week days.
Note: The first Day of the Week is Monday TODO: Move this to a more general library
The Month type
Symbolic months.
TODO: Move this to a more general library
The Moment type
Moment data type
One per Frequency (Is this the best way to define this?)
Generate list of recurring Moment
recurBy :: Integer -> [Moment -> [Moment]] -> Moment -> [Moment]Source
Generate recurrences from the startDate, filtered by optional rules
Create UTCTime
utcGregorianWithTime :: Integer -> Int -> Int -> Int -> Int -> Int -> UTCTimeSource
Construct a UTCTime at a time
Recurrence type rule effects
byWeekNumber :: [Int] -> Moment -> [Moment]Source
byMonthDay :: [Int] -> Moment -> [Moment]Source