search for: ical_timezone

Displaying 1 result from an estimated 1 matches for "ical_timezone".

2008 Dec 30
3
integration of tzinfo with icalendar
...s you do the following: estart = DateTime.new(2008, 12, 29, 8, 0, 0) eend = DateTime.new(2008, 12, 29, 11, 0, 0) tstring = "America/Chicago" tz = TZInfo::Timezone.get(tstring) cal = Calendar.new # generate timezone recurrence rules guaranteed to work for this # start date timezone = tz.ical_timezone(estart) cal.add(timezone) cal.event do dtstart estart dtend eend summary "Meeting with the man." description "Have a long lunch meeting and decide nothing..." klass "PRIVATE" end The recurrence rule generation is a little h...