relative-date-0.0.1: Durations and generalized time parsing

Data.Duration

Synopsis

Documentation

data Days Source

Used as values for toDuration

Constructors

Day 
Week 
Month 
Year 

Instances

toDuration :: Integer -> Days -> DurationSource

Creates a duration for the number of periods of days specified

fixTime :: DateTime -> Int -> DateTimeSource

Increments a DateTime to be on the weekday (0-6) given

zellerCongruence :: Integer -> Int -> Int -> IntegerSource

Given year, month and day, gives the (0 based) day of the week

assemble :: DateTime -> Duration -> Maybe Duration -> [DateTime]Source

Creates a list of DateTimes given a start date, an interval duration, and an end duration from the start date