Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require "rubygems"
- require "ri_cal"
- File.open("mycalendar.ics", "r") do |file|
- calendar = RiCal.parse(file)
- calendar.each do |cal|
- cal.events.each do |event|
- puts "Event occurs from: #{event.dtstart} to #{event.dtend}"
- puts "#{event.summary}"
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement