From 82741f65fc387e898e5e17f16a057b34bb6dddab Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 15 Mar 2009 04:05:30 +0100 Subject: Improve documentation --- lib/chaos_calendar/README | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/chaos_calendar/README b/lib/chaos_calendar/README index 9b9f6cf..90b5497 100644 --- a/lib/chaos_calendar/README +++ b/lib/chaos_calendar/README @@ -1,3 +1,9 @@ install libical (/usr/ports/devel/libical) run gen.sh in this directory find ical_occurrences ruby extension in ./ + +irb +>> require 'ical_occurrences' +occ_array = Ical_occurrences::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. -- cgit v1.3