time-recurrence-0.1.1: Generate recurring dates.

Data.Time.Recurrence

Contents

Synopsis

The WeekDay type

data WeekDay Source

Symbolic week days.

Note: The first Day of the Week is Monday TODO: Move this to a more general library

The Month type

data Month Source

Symbolic months.

TODO: Move this to a more general library

The Recurrence type

toUTCTime :: Recurrence -> UTCTimeSource

Frequency Constrcutors for the Recuurence type

secondly :: RecurrenceSource

Base Recurrence constructors. One for each of the Frequency types.

minutely :: RecurrenceSource

hourly :: RecurrenceSource

daily :: RecurrenceSource

weekly :: RecurrenceSource

monthly :: RecurrenceSource

yearly :: RecurrenceSource

Generates list of Recurrence type

recur :: Recurrence -> [Recurrence]Source

Generate a infinite list of recurrences

Recurrence type rule effects

withRules :: [Recurrence -> [Recurrence]] -> [Recurrence] -> [Recurrence]Source

Takes a list of rule parts and apply them over a list of Recurrence to generate a new list of Recurrence

byMonth :: [Month] -> Recurrence -> [Recurrence]Source

byWeekNumber :: [Int] -> Recurrence -> [Recurrence]Source

byYearDay :: [Int] -> Recurrence -> [Recurrence]Source