Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 596 Bytes

README.rdoc

File metadata and controls

30 lines (18 loc) · 596 Bytes

ICS is a library that reads ICS files and parses them into ICS::Event objects.

require 'rubygems'
require 'ics'
events = ICS::Event.file(File.open('calendar.ics'))
events.map(&:summary)
#=> ['Walk dog', 'Solve world hunger, tell noone', ...]

Some attributes have some metadata attached to them. For example, sometimes the DTSTART attribute has the time zone:

DTSTART;TZID=America/Chicago:20100331T190000

As of this version, metadata is ignored.

gem install ics
  • escape characters

  • Multiple alarms?