Introduction
vCalendar 1.0 is the calendar format that came before
iCalendar. It was published in 1996 by the versit
Consortium, the same group that made vCard, to let
calendar programs and devices swap events and to-do items. iCalendar replaced it from
1998, but .vcs files lived on in mobile phones of the 2000s, which sent
appointments as vCalendar over infrared, Bluetooth or text message, and older versions of
Outlook could save an appointment as a .vcs file.
Structure
A vCalendar file uses the same text lines as vCard 2.1:
NAME;PARAMETER=value:value, with groups between BEGIN: and
END: lines. The file is one VCALENDAR with the line
VERSION:1.0, holding VEVENT and VTODO entries. An
event has properties such as DTSTART, DTEND,
SUMMARY, DESCRIPTION and LOCATION. Text outside
ASCII is usually written with a CHARSET parameter and quoted-printable
encoding.
The main differences from iCalendar are the version line, alarms written as properties
such as DALARM and AALARM rather than nested
VALARM components, a shorter syntax for repeat rules, and the lack of
time zone definitions. The properties
page lists every property, alarm and rule code.
Not described
The properties page follows the Versit vCalendar 1.0 specification (Word copy, complete); the syntax page covers its sections 1 to 5: the object model, line syntax, encodings, the formal grammar, transport recommendations and conformance. Section 6 (the extended recurrence grammar from the XAPIA CSA specification) is reference material for the recurrence rules already on the properties page.
Known, not yet covered
- Reference: (non-blocking, not required for Full) the vendor extension meanings are only as good as public sources: no source gives a definition of
X-EPOCTODOLIST,X-SYMBIAN-LUID,X-IRMC-LUID,X-PILOTIDorX-PILOTSTAT, so the page states observed values and marks the rest unconfirmed. - Viewer: the explorer shows the object tree (
VCALENDAR,VEVENT,VTODO), every property with its parameters and its value decoded byENCODINGandCHARSETand read by its type (dates and durations, both recurrence grammars in words, the four alarm properties, attendee parameters,CATEGORIES,RESOURCES,CLASS,STATUS,TRANSP,PRIORITY,GEO,TZ,DAYLIGHT), vendorX-properties labelled observed or unconfirmed as the properties page says, a paged table of events and to-dos, every date the repeat rules generate (below), inline attachments and alarm sounds as entries that open as files, and every problem labelled Structure, Syntax, Value or Warning (the conformance table’s mandatory properties are not a problem when missing: the specification makes them mandatory for implementations, so one Overview note says how many events and to-dos leave some out; onlyVERSIONmust appear).
Repeat dates: eachRRULEandEXRULE(both grammars, nested rules, the$end mark,#nand the end date) is expanded into its dates as the specification’s policies say;RDATEadds andEXDATEtakes away; the Repeats tab lists them event by event in pages (Previous and Next, 200 rows a page), with how many each comes to. Every date of a finite rule is listed, for every event and to-do, however many there are; only a rule that goes on for ever (#0) stops, at 10,000 dates, and no date after the year 9999 is listed because none can be written (the row gives how many fall after it and the true total). The dates are made a page at a time, so no list is held in memory; the counting limits (5,000,000 dates for one event, 20,000,000 for the file) and how a rule past them is shown are in the next two items.RNUMis checked against the true total (the total, or the total without the start, since the specification says both “the number of recurrences” and “including the first”, and under either reading of#n: see Unknown), the end date against the start, nested rules against each other (they must not interleave: “subrules can not interleave occurrences”) and the start date against every rule of a chain, not only the first.
Time zones:TZandDAYLIGHTconvert local times to UTC and back, soDTENDorDUEbeforeDTSTARTis found across local and UTC times, and a UTC end date orEXDATEmeets a local start. With noTZ, a local and a UTC time cannot be compared, so such a pair is not a problem.
Entries: an inlineATTACHwithBASE64,QUOTED-PRINTABLEor8BITdata, and the content of anAALARM(its sound asBASE64, orQUOTED-PRINTABLEor8BITbytes, or any alarm’sBASE64content) open as files, decoded; aTYPEthat is a MIME type gives the file type.
Still limited: a character set the browser cannot decode is read as Windows-1252 with a warning; a rule that goes on for ever (#0) stops at 10,000 dates, and no date after the year 9999 can be written, because the date syntax has four digits for the year (the row says how many fall after it, and the true total). - Viewer: the dates of a finite rule are counted for at most 5,000,000 dates for each event or to-do (20,000,000 for the whole file) unless the rule is plain (one event in each period, such as
D1 #norM1 #n), which is counted exactly by arithmetic however long it is. Any other rule that makes more than that shows “at least” and the number reached, and RNUM is not compared with a total that is only “at least”; its dates after the counted ones are still listed, page after page, and the pager’s total is a lower bound that grows until a page reaches the last date. Dates past the year 9999 are counted to the year 275,000 for the true total, but cannot be written, so they are not listed. - Viewer: for a rule that is not plain and passes a counting limit, the end of its dates is found by paging: until a page reaches it the Repeats tab says “at least N so far” and “not reached yet”, and after it the exact total and the last date. A page that starts beyond that end returns no rows, so the dates after it are reached by paging on from the last page read (the table has Previous and Next, 200 rows a page). A count that stopped before it began reads “not counted”, never “at least 0”. The Overview gives the counts made when the file was opened.
Unknown
- Viewer: the specification contradicts itself on what a rule’s
#ncounts. The policies (line 799) say it is “the total number of events … including the first”, which would makeW2 TU TH #4four dates; but its examples count periods:W2 TU TH #4is “8 occurrences” (line 641) andMP2 1+ 2- FR #3is six (line 1879); and elsewhere they count events:YM1 6 7 #10is “10 occurrences” (lines 703 and 704) andMD1 1 LD #10is “for 10 occurrences” (lines 694 and 695), which the periods reading makes 20. The viewer reads#nas periods, since that is what most of the examples show, says so on the Repeats tab, shows the other reading’s count beside each rule whose two readings differ, and accepts anRNUMthat matches the total under either reading, with or without the start. Which reading versit meant is not known. - Viewer: the specification does not say which day a week starts on (the viewer starts it on Sunday, first in its weekday list), and its
DAYLIGHTexamples name one year, so the viewer reads the same month, day and time in other years. One example in the extended grammar (YM1 1 6 #1 MD1 7$ 14, “generates occurrences on 1/7 1/14 2/7 6/7 6/14 7/7”) is worked through by the viewer: it makes exactly the example’s six dates (1/7 1/14 2/7 6/7 6/14 7/7), because the nested ruleMD1 7$ 14runs once for each month the outer rule names.
Notes
- Viewer: a
VALUE=URL,CIDorCONTENT-IDvalue (anATTACH, anAALARMsound, aLOCATIONorATTENDEEthat points at a vCard) and aUIDnamed byRELATED-TOare shown and checked for their form, but not followed: their targets are other files, other parts of a message or other calendars, outside this file, so there is nothing in it to open or look up. - Viewer: a vCalendar inside an email message (the specification’s transport examples,
spec-rfc822-body.vcs) is a MIME message, another format: the viewer reads the vCalendar part when the file is a bare calendar, and reports the message lines outside the object as lines outside the object. AContent-IDthat names another part of the message has no part to open in a bare calendar.
Links
Software
- Microsoft Outlook – email and calendar program that imports .vcs appointments (Windows)
Developers
- libical – calendar library whose libicalvcal part converts vCalendar 1.0 to iCalendar (C)
Reference
- vCalendar: The Electronic Calendaring and Scheduling Exchange Format, Version 1.0 – the versit Consortium’s specification of 1996