0.0
No commit activity in last 3 years
No release in over 3 years
Calculate occurrences of ical Events with RRules
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Dependencies:

libical

Install:

First of all make sure you have libical installed. Without it the gem won’t install.

$ gem sources -a http://gems.github.com (if you haven't already)
$ sudo gem install erdgeist-chaos_calendar

If the install fails because of missing header files try:

$ sudo gem install erdgeist-chaos_calendar -- --with-ical-include=/path/to/include/dir

on Mac OS X

$ sudo gem install erdgeist-chaos_calendar -- --with-ical-include=/opt/local/include

on FreeBSD:

$ sudo gem install erdgeist-chaos_calendar -- --with-ical-include=/usr/local/include

Usage:

irb
>> require 'chaos_calendar'
occ_array = ChaosCalendar::occurrences( "20000101T230000", "20091231T230000", "FREQ=DAILY;COUNT=1200" )

Be aware that the array is in UTC and will be converted to your local timezone before it is used.