ICS (.ics, .ical, .ifb)

  • Import fully supports ICS version 2.0.

BackgroundBackground

    MIME types: text/calendar
    ICS iCalendar format.
    Used for the storage and exchange of calendar information.
    Commonly used in personal information management systems.
    Plain text format.
    Stores multiple events, tasks, and journal entries in a single file.
    Described in internet standard recommendation RFC 5545.
    Developed in 1998.

Import and ExportImport and Export

  • Import["file.ics"] imports all events from an ICS file.
  • Import["file.ics"] gives a list of rules for each event stored in the file.
  • Import["file.ics",elem] imports the specified element from an ICS file.
  • Import["file.ics",{elem,sub,}] imports a subelement.
  • Import["file.ics",{{elem1,elem2,}}] imports multiple elements.
  • The import format can be specified with Import["file","ICS"] or Import["file",{"ICS",elem,}].
  • See the reference pages for full general information on Import.
  • ImportString supports the ICS format.

ElementsElements

  • General Import elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties, and settings
  • Data representation elements:
  • "Availability"free/busy information, given as lists of rules
    "Events"event data, given as lists of rules
    "JournalEntries"journal entries, given as lists of rules
    "Tasks"task data, given as lists of rules
    "TimeZones"time zones, represented as lists of rules
  • Import uses the element by default.
  • Import["file.ics"] reads all events and returns them as a list of lists of rules.
  • Meta-information elements:
  • "CalendarSystem"calendar system used in this file
    "Creator"application that created this file

OptionsOptions

  • Import options:
  • "EmptyField"Automatichow missing information is represented

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Import the first event from an ICS file:

In[1]:=
Click for copyable input
Out[1]=

Import a journal entry:

In[1]:=
Click for copyable input
Out[1]=

Import all tasks from an ICS file:

In[1]:=
Click for copyable input
Out[1]=

Import time zone data:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2010
(8.0)
| Updated in 2014
(10.0)