Displaying 1 result from an estimated 1 matches for "ical_fil".
Did you mean:
ical_file
2008 Sep 04
1
Timezone support?
...s. Here''s my code:
require ''rubygems''
require ''icalendar''
require ''date''
require ''vpim''
icalendar_events = []
vpim_events = []
File.open("/Users/rick/Testing.ics") do | ical_file |
calendar = Icalendar::Parser.new(ical_file).parse.first
icalendar_events = calendar.events.to_a
end
File.open("/Users/rick/Testing.ics") do | ical_file |
calendar = Vpim::Icalendar.decode(ical_file).first
vpim_events = calendar.events.to_a
end...