VCS (.vcs)

MIME types: text/calendar
VCS vCalendar format.
Used for the storage and exchange of calendar information and in personal information management applications.
Superseded by the ICS format.
Plain text format.
Stores multiple events and tasks in a single file.
Developed in 1996.
  • Import fully supports VCS version 1.

Import and ExportImport and Export

  • Import["file.vcs"] imports all events from a VCS file.
  • Import["file.vcs"] gives a list of rules for each event stored in the file.
  • Import["file.vcs", elem] imports the specified element from a VCS file.
  • Import["file.vcs", {elem, sub, ...}] imports a subelement.
  • Import["file.vcs", {{elem1, elem2, ...}}] imports multiple elements.
  • The import format can be specified with Import["file", "VCS"] or Import["file", {"VCS", elem, ...}].
  • See the reference pages for full general information on Import.
  • ImportString supports the VCS 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:
  • "Events"event data, given as lists of rules
    "Tasks"task data, given as lists of rules
    "TimeZone"time zone information, given as a list of rules
  • Import uses the element by default.
  • Import["file.vcs"] reads all events and returns them as a list of a list of rules.
  • Metainformation elements:
  • "Creator"application that created this file
    "GeoPosition"location of the system used to create the calendar

OptionsOptions

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

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Import the first event in a VCS file:

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

Import tasks from VCS:

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

Get time zone information from a file:

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

Import all event summaries and start dates from a file, and display them in table form:

In[1]:=
Click for copyable input
Out[1]//TableForm=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »