Displaying 1 result from an estimated 1 matches for "estart".
Did you mean:
start
2008 Dec 30
3
integration of tzinfo with icalendar
My interest in icalendar is more on the ical generation side instead of
the ical parsing side. As such, I did a bit of work on a tzinfo mixin
that will generate the timezone rules based on the tzinfo gem. This
lets 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(...