time-recurrence-0.2: 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 Moment type

data Moment Source

Moment data type One per Frequency (Is this the best way to define this?)

Constructors

Secondly 

Fields

moment :: UTCTime
 
Minutely 

Fields

moment :: UTCTime
 
Hourly 

Fields

moment :: UTCTime
 
Daily 

Fields

moment :: UTCTime
 
Weekly 

Fields

moment :: UTCTime
 
Monthly 

Fields

moment :: UTCTime
 
Yearly 

Fields

moment :: UTCTime
 

Instances

Generate list of recurring Moment

recurBy :: Integer -> [Moment -> [Moment]] -> Moment -> [Moment]Source

Generate recurrences from the startDate, filtered by optional rules

recur :: [Moment -> [Moment]] -> Moment -> [Moment]Source

Default interval of 1

Create UTCTime

utcGregorian :: Integer -> Int -> Int -> UTCTimeSource

Construct a UTCTime at midnight

utcGregorianWithTime :: Integer -> Int -> Int -> Int -> Int -> Int -> UTCTimeSource

Construct a UTCTime at a time

Recurrence type rule effects