Skip to content

mitchellvitez/rrule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rrule

Recurrence rule parser and formatter

fromText parses from a recurrence rule Text to the RRule type

> let rule = fromJust $ fromText "RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=1"
> rule
RRule {prefix = True, frequency = Just Monthly, byMonthDay = Just (1 :| []), ... }

toText formats an RRule to a recurrence rule Text

> toText rule
"RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=1"

description gives a description of what an RRule means, in English

> description rule
"every month on the 1st day of the month"

About

Recurrence rule parser and formatter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published