Internet-Draft | JSCalendar | November 2024 |
Stepanek | Expires 8 May 2025 | [Page] |
This document defines how to convert calendaring information between the JSCalendar and iCalendar data formats. It considers every JSCalendar and iCalendar element registered at IANA at the time of publication. It defines conversion rules for all elements that are common to both formats, as well as how convert arbitrary or unknown JSCalendar and iCalendar elements.¶
This note is to be removed before publishing as an RFC.¶
This document is unfinished. The term TBD stands for any unknown item.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 8 May 2025.¶
Copyright (c) 2024 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
The ABNF definitions in this document use the notations of [RFC5234]. ABNF rules not defined in this document either are defined in [RFC5234] or [RFC5545].¶
This document outlines how to convert calendaring information between the iCalendar and JSCalendar data formats. It describes which elements are common to both, but also highlights where the two formats differ. For each common element, it defines a conversion rule and includes an example how to convert this element. All iCalendar and JSCalendar elements currently registered at IANA are in scope, but not all of these elements are common to both formats.¶
For elements that have no counterpart in the other format, it is the goal of this document to define how to preserve them during conversion, but in general it is not the goal to achieve this by defining new standard elements. Instead, this document defines special-purpose properties to preserve arbitrary elements. These conversion-specific properties are defined in Section 4.2.2 for iCalendar, and Sections 5.1.1 and 5.1.2 for JSCalendar. Appendix A further outlines the discrepancies between the two formats.¶
Later sections contain examples that illustrate how to convert between the iCalendar and JSCalendar data formats. The notation of these examples is such that their main points should be clear to the reader, but their contents can also be parsed for automated testing. The authors of this document implemented a tool that extracts these examples for interoperation testing. The following sections define the notation for such examples.¶
An iCalendar example contains either an extract or a complete representation of iCalendar data. It always represents an iCalendar object, even if the example only depicts non-VCALENDAR components or properties.¶
An example that only contains iCalendar properties implicitly represents a VEVENT component that is part of a VCALENDAR component. An example that only contains one or more non-VCALENDAR components implicitly represents a VCALENDAR component that contains them. Implicit components are assumed to contain mandatory properties with some value, but the actual value is irrelevant for the main point of the example. Notably, if an implicit component includes an ATTENDEE but not an ORGANIZER property, then an ORGANIZER property implicitly is present, too. The same applies for an example with an ORGANIZER but no ATTENDEE property.¶
Figure 1 contains three examples, all of which represent the same iCalendar data. In the first example, both the VEVENT component and VCALENDAR component are implicit. In the second example, only the VCALENDAR component and its mandatory properties are implicit. The third example depicts a complete VCALENDAR component, nothing is implicit.¶
A line containing just the value ...
stands for any other properties that might be present in a component but are irrelevant for this example. This includes mandatory properties as described for implicit components. The line ...
at the end of the example additionally stands for any END content lines to complete components that started with BEGIN content lines, and any of their missing mandatory properties. Figure 2 illustrates this as an alternative representation for the examples of Figure 1.¶
A line starting with a single space represents the continuation of a folded content line (Section 3.1 of [RFC5545]). Figure 3 illustrates this.¶
A JSCalendar example always represents a Group object, even if the example only depicts one of the Group entries or properties.¶
JSCalendar objects are depicted either explicitly or implicitly. An explicit JSCalendar object starts and ends with braces. An implicit JSCalendar object omits braces, it only consists of JSON name/value pairs, separated by comma.¶
An implicit JSCalendar object is assumed to be of type Event, unless it contains the @type
property with a different value. It is assumed to contain all mandatory properties with some value; if they are not depicted, their actual value is irrelevant for the main point of the example.¶
Figure 4 illustrates this with multiple examples, all of which represent the same JSCalendar data. The first example contains an implicit JSCalendar object of type Event. The second example contains an implicit JSCalendar object with a @type
property. The third example contains an explicit Event object but the Group object containing it is omitted. The fourth example contains the full Group object, nothing is omitted.¶
A property with name "..."
and value ""
stands for additional properties that might be present in a JSCalendar object, but which are irrelevant for this example. This includes mandatory properties. Figure 5 illustrates this as an alternative representation for the examples of Figure 4.¶
Section 3.4 of [RFC5545] allows for an iCalendar stream to contain one or more iCalendar objects. In contrast, this specification only defines conversion for streams consisting of a single iCalendar object. Converting streams of multiple iCalendar objects is implementation-specific. All following sections of this document use the terms "iCalendar object" and "VCALENDAR component" interchangeably.¶
The VCALENDAR component [RFC5545] (Section 3.4) converts to a Group object [RFC8984] (Section 2.3).¶
Its properties convert as follows:¶
Name | Reference | Group property | See | Note |
---|---|---|---|---|
CATEGORIES | [RFC5545], Section 3.8.1.2 | keywords | Section 2.3.6 | |
COLOR | [RFC7986], Section 5.9 | color | Section 2.3.8 | |
CONCEPT | [RFC9253], Section 8.1 | categories | Section 2.3.10 | |
CREATED | [RFC5545], Section 3.8.7.1 | created | Section 2.3.12 | |
DESCRIPTION | [RFC5545], Section 3.8.1.5 | description | Section 2.3.13 | |
LAST-MODIFIED | [RFC5545], Section 3.8.7.3 | updated | Section 2.3.23 | |
LINK | [RFC9253], Section 8.2 | links | Section 2.3.24 | |
METHOD | [RFC5545], Section 3.7.2 | entries/*/method | Section 2.3.27 | |
NAME | [RFC7986], Section 5.1 | title | Section 2.3.28 | |
PRODID | [RFC5545], Section 3.7.3 | prodId, entries/*/prodId | Section 2.3.33 | |
SOURCE | [RFC7986], Section 5.8 | source | Section 2.3.41 | |
UID | [RFC5545], Section 3.8.4.7 | uid | Section 2.3.54 | |
URL | [RFC5545], Section 3.8.4.6 | links | Section 2.3.55 |
Its components convert as follows:¶
Name | Reference | Group property | See | Note |
---|---|---|---|---|
VEVENT | [RFC5545], Section 3.6.1 | entries | Section 2.2.3 | |
VTIMEZONE | [RFC5545], Section 3.6.5 | timeZones | Section 2.2.6 | |
VTODO | [RFC5545], Section 3.6.2 | entries | Section 2.2.7 |
Other properties or components MAY be converted to the iCalComponent property (Section 5.1.1) of the Group object.¶
The following example illustrates how to convert the VCALENDAR component:¶
Components in an iCalendar object generally convert to distinct JSCalendar objects. For example, two VEVENT components with different UID property values in the same iCalendar object convert to two separate Event objects in the Group object's entries. This rule does not apply to recurrence overrides, defined as follows.¶
A VEVENT (or VTODO) component is a recurrence override if it has the RECURRENCE-ID property set, and the iCalendar object contains a VEVENT (or VTODO) component that does not have the RECURRENCE-ID but the RRULE property set, and the UID property values of the two components are equal. The component without the RECURRENCE-ID property is in that case referred to as the "main component".¶
The main component converts to an entry in the Group object's entries property.¶
The recurrence override converts to the recurrenceOverrides property of the converted main component. Its RECURRENCE-ID property value converts to the key in the recurrenceOverrides property. The value of the recurrenceOverrides property at that key is the PatchObject that transform the converted main component into the converted recurrence override. The recurrenceId and recurrenceIdTimeZone properties MUST NOT be set in the PatchObject.¶
The following example illustrates how to convert a main component and its recurrence override:¶
A VEVENT (or VTODO) component is a stand-alone recurrence instance if it has the RECURRENCE-ID property set and the iCalendar object does not contain its related main component. Each stand-alone recurrence instance converts to a distinct Event (or Task) object in the Group object's entries property. The recurrenceId property MUST be set, the recurrenceIdTimeZone property MUST be set if not "null". The converted objects sort in order of appearance of the iCalendar components.¶
The following example illustrates how to convert stand-alone recurrence instances:¶
JSCalendar generally uses JSON objects to represent a collection of same-typed values. The keys are of type Id [RFC8984] (Section 1.4.1), the values are JSCalendar object types. If an iCalendar element converts to a value in such a collection, then an implementation needs to choose an identifier as key.¶
This document defines the new JSCALID (Section 4.1.1) parameter and JSCALID property (Section 4.2.1), which allow to set a JSCalendar Id value when converting from JSCalendar to iCalendar. If they are set on a property or the component, then its value MUST be used as key when converting that element from iCalendar to JSCalendar. If no such parameter or property is set, then an implementation is free to choose any identifier, as long the following requirements are met:¶
Converting temporal properties such as DTSTART, DTEND, and RECURRENCE-ID requires to not only determine the date and time of the property value, but also the timezone it references.¶
If the property value data type is DATE [RFC5545] (Section 3.3.4) or DATE-TIME in FORM #1: DATE WITH LOCAL TIME [RFC5545] (Section 3.3.5) then the timezone identifier is the JSON null value in JSCalendar.¶
If the property value data type is DATE-TIME in FORM #2: DATE WITH UTC TIME [RFC5545] (Section 3.3.5) then the timezone identifier is the string "Etc/UTC" in JSCalendar.¶
If the property value data type is DATE-TIME in FORM #3: DATE WITH LOCAL TIME AND TIME ZONE REFERENCE [RFC5545] (Section 3.3.5) then the timezone identifier is determined by the TZID parameter value:¶
If the TZID parameter value is equal to a name in the IANA Time Zone Database [TZDB] then the timezone identifier is that verbatim name.¶
If the TZID parameter value is unequal to an IANA timezone name then implementations MAY determine the name of an IANA timezone which has the same timezone rules over the timespan of the calendar object. Otherwise, the non-IANA timezone identifier is represented in JSCalendar as a string starting with the / (SLASH) character, followed by the TZID parameter value. The corresponding VTIMEZONE MUST be converted to the timeZones property with the prefixed identifier as key. See Figure 14 for an example.¶
iCalendar provides the DATE and DATE-TIME value types to distinguish date-only from date-time values. JSCalendar only supports date-time values. A property value of type DATE-TIME converts to either a LocalDateTime or UTCDateTime, depending on the JSCalendar property definition. A DATE value type converts to a LocalDateTime with zero time.¶
The PARTICIPANT component [RFC9073] (Section 7.1) converts to a Participant object [RFC8984] (Section 4.4.6).¶
Its properties convert as follows:¶
Name | Reference | Participant property | See | Note |
---|---|---|---|---|
ATTACH | [RFC5545], Section 3.8.1.1 | links | Section 2.3.3 | |
CALENDAR-ADDRESS | [RFC9073], Section 6.4 | calendarAddress | Section 2.3.5 | |
COMMENT | [RFC5545], Section 3.8.1.4 | participationComment | Section 2.3.9 | Only one comment supported |
DESCRIPTION | [RFC5545], Section 3.8.1.5 | description | Section 2.3.13 | |
DTSTAMP | [RFC5545], Section 3.8.7.2 | scheduleUpdated | Section 2.3.15 | |
GEO | [RFC5545], Section 3.8.1.6 | locations | Section 2.3.21 | |
LINK | [RFC9253], Section 8.2 | links | Section 2.3.24 | |
LOCATION | [RFC5545], Section 3.8.1.7 | locations | Section 2.3.25 | |
PARTICIPANT-TYPE | [RFC9073], Section 6.2 | roles | Section 2.3.30 | |
SEQUENCE | [RFC5545], Section 3.8.7.4 | scheduleSequence | Section 2.3.39 | |
STRUCTURED-DATA | [RFC9073], Section 6.6 | links | Section 2.3.42 | |
SUMMARY | [RFC5545], Section 3.8.1.12 | name | Section 2.3.44 | |
URL | [RFC5545], Section 3.8.4.6 | links | Section 2.3.55 |
Its components convert as follows:¶
Name | Reference | Participant property | See | Note |
---|---|---|---|---|
VLOCATION | [RFC9073], Section 7.2 | locations | Section 2.2.4 |
Other properties or components MAY be converted to the iCalComponent property (Section 5.1.1) of the Participant object. This includes mandatory properties such as UID [RFC5545] (Section 3.8.4.7).¶
The following example illustrates how to convert the PARTICIPANT component:¶
The VALARM component [RFC5545] (Section 3.6.6) converts to a Alert object [RFC8984] (Section 4.5.2).¶
Its properties convert as follows:¶
Name | Reference | Alert property | See | Note |
---|---|---|---|---|
ACKNOWLEDGED | [RFC9074], Section 6.1 | acknowledged | Section 2.3.1 | |
ACTION | [RFC5545], Section 3.8.6.1 | action | Section 2.3.2 | Only if ACTION is EMAIL or DISPLAY. |
RELATED-TO | [RFC5545], Section 3.8.4.5 | relatedTo | Section 2.3.36 | |
TRIGGER | [RFC5545], Section 3.8.6.3 | trigger | Section 2.3.46 |
Other properties or components MAY be converted to the iCalComponent property (Section 5.1.1) of the Alert object. This includes mandatory properties such as ATTENDEE [RFC5545] (Section 3.8.4.1), DESCRIPTION [RFC5545] (Section 3.8.1.5), or SUMMARY [RFC5545] (Section 3.8.1.12).¶
The following example illustrates how to convert the VALARM component:¶
The VEVENT component [RFC5545] (Section 3.6.1) converts to a Event object [RFC8984] (Section 2.1).¶
VEVENT components with different UID property values in the same iCalendar object convert to different entries in the Group. They sort in the same order as in the VCALENDAR component.¶
Its properties convert as follows:¶
Its components convert as follows:¶
Name | Reference | Event property | See | Note |
---|---|---|---|---|
VALARM | [RFC5545], Section 3.6.6 | alerts | Section 2.2.2 |
Other properties or components MAY be converted to the iCalComponent property (Section 5.1.1) of the Event object.¶
The following example illustrates how to convert the VEVENT component:¶
The VLOCATION component [RFC9073] (Section 7.2) converts to a Location object [RFC8984] (Section 4.2.5).¶
Its properties convert as follows:¶
Name | Reference | Location property | See | Note |
---|---|---|---|---|
ATTACH | [RFC5545], Section 3.8.1.1 | links | Section 2.3.3 | |
DESCRIPTION | [RFC5545], Section 3.8.1.5 | description | Section 2.3.13 | |
GEO | [RFC5545], Section 3.8.1.6 | coordinates | Section 2.3.21 | |
IMAGE | [RFC7986], Section 5.10 | links | Section 2.3.22 | |
LINK | [RFC9253], Section 8.2 | links | Section 2.3.24 | |
LOCATION-TYPE | [RFC9073], Section 6.1 | locationTypes | Section 2.3.26 | |
NAME | [RFC7986], Section 5.1 | name | Section 2.3.28 | |
STRUCTURED-DATA | [RFC9073], Section 6.6 | links | Section 2.3.42 |
Other properties or components MAY be converted to the iCalComponent property (Section 5.1.1) of the Location object. This includes mandatory properties such as UID [RFC5545] (Section 3.8.4.7).¶
The following example illustrates how to convert the VLOCATION component:¶
The VRESOURCE component [RFC9073] (Section 7.3) converts to a Participant object [RFC8984] (Section 4.4.6).¶
Its properties convert as follows:¶
Name | Reference | Participant property | See | Note |
---|---|---|---|---|
ATTACH | [RFC5545], Section 3.8.1.1 | links | Section 2.3.3 | |
DESCRIPTION | [RFC5545], Section 3.8.1.5 | description | Section 2.3.13 | |
GEO | [RFC5545], Section 3.8.1.6 | locations | Section 2.3.21 | |
IMAGE | [RFC7986], Section 5.10 | links | Section 2.3.22 | |
LINK | [RFC9253], Section 8.2 | links | Section 2.3.24 | |
NAME | [RFC7986], Section 5.1 | name | Section 2.3.28 | |
STRUCTURED-DATA | [RFC9073], Section 6.6 | links | Section 2.3.42 |
Other properties or components MAY be converted to the iCalComponent property (Section 5.1.1) of the Participant object. This includes mandatory properties such as UID [RFC5545] (Section 3.8.4.7).¶
The following example illustrates how to convert the VRESOURCE component:¶
The VTIMEZONE component [RFC5545] (Section 3.6.5) converts to a TimeZone object [RFC8984] (Section 4.7.2).¶
Its properties convert as follows:¶
Name | Reference | TimeZone property | See | Note |
---|---|---|---|---|
LAST-MODIFIED | [RFC5545], Section 3.8.7.3 | updated | Section 2.3.23 | |
TZID | [RFC5545], Section 3.8.3.1 | tzId | Section 2.3.47 | |
TZID-ALIAS-OF | [RFC7808], Section 7.2 | aliases | Section 2.3.48 | |
TZUNTIL | [RFC7808], Section 7.1 | validUntil | Section 2.3.52 | |
TZURL | [RFC5545], Section 3.8.3.5 | url | Section 2.3.53 |
Its components convert as follows:¶
Name | Reference | TimeZone property | See | Note |
---|---|---|---|---|
DAYLIGHT | [RFC5545], Section 3.6.5 | daylight | In this section | |
STANDARD | [RFC5545], Section 3.6.5 | standard | In this section |
Other properties or components MAY be converted to the iCalComponent property (Section 5.1.1) of the TimeZone object.¶
The DAYLIGHT component [RFC5545] (Section 3.6.5) and STANDARD component [RFC5545] (Section 3.6.5) convert to a TimeZoneRule object [RFC8984] (Section 4.7.2).¶
Their properties convert as follows:¶
Name | Reference | TimeZoneRule property | See | Note |
---|---|---|---|---|
COMMENT | [RFC5545], Section 3.8.1.4 | comments | Section 2.3.9 | |
DTSTART | [RFC5545], Section 3.8.2.4 | start | Section 2.3.16 | |
RDATE | [RFC5545], Section 3.8.5.2 | recurrenceOverrides | Section 2.3.34 | |
RRULE | [RFC5545], Section 3.8.5.3 | recurrenceRules | Section 2.3.38 | |
TZNAME | [RFC5545], Section 3.8.3.2 | names | Section 2.3.49 | |
TZOFFSETFROM | [RFC5545], Section 3.8.3.3 | offsetFrom | Section 2.3.50 | |
TZOFFSETTO | [RFC5545], Section 3.8.3.4 | offsetTo | Section 2.3.51 |
Other properties or components MAY be converted to the iCalComponent property (Section 5.1.1) of the TimeZoneRule object.¶
The following example illustrates how to convert the VTIMEZONE component:¶
The VTODO component [RFC5545] (Section 3.6.2) converts to a Task object [RFC8984] (Section 2.2).¶
VTODO components with different UID property values in the same iCalendar object convert to different entries in the Group. They sort in the same order as in the VCALENDAR component.¶
Its properties convert as follows:¶
Its components convert as follows:¶
Name | Reference | Task property | See | Note |
---|---|---|---|---|
VALARM | [RFC5545], Section 3.6.6 | alerts | Section 2.2.2 |
Other properties or components MAY be converted to the iCalComponent property (Section 5.1.1) of the Task object.¶
The following example illustrates how to convert the VTODO component:¶
The ACKNOWLEDGED property [RFC9074] (Section 6.1) in a VALARM component converts to the acknowledged property [RFC8984] (Section 4.5.2) of the Alert object.¶
The following example illustrates how to convert the ACKNOWLEDGED property:¶
The ACTION property [RFC5545] (Section 3.8.6.1) in a VALARM component converts to the action property [RFC8984] (Section 4.5.2) of the Alert object.¶
Its values convert as follows:¶
iCalendar value | JSCalendar value |
---|---|
DISPLAY | display |
An ACTION property with value AUDIO or any other not listed in Table 15 does not convert to the action property. Instead, the property converts to the iCalComponent/properties property (Section 5.1.1) of the Alert.¶
The following examples illustrate how to convert the ACTION property:¶
The ATTACH property [RFC5545] (Section 3.8.1.1) in a VEVENT, VTODO, VRESOURCE, PARTICIPANT, or VLOCATION component converts to a Link object [RFC8984] (Section 1.4.11). The converted object is set in the links property of the Event, Task, Participant, or Location object.¶
The property value converts to the href property of the Link object. A value of type URI converts as-is. A value of type BINARY converts to a URI in the "data" URL scheme ([RFC2397]. If the FMTTYPE parameter is set on the ATTACH property, then the parameter value SHOULD be set in the mediatype
part of the data URL.¶
The ATTACH property parameters convert as follows:¶
Name | Reference | Link Property | Note |
---|---|---|---|
FMTTYPE | [RFC5545], Section 3.2.8 | contentType | |
SIZE | [RFC8607], Section 4.1 | size |
The following examples illustrate how to convert the ATTACH property:¶
The ATTENDEE property [RFC5545] (Section 3.8.4.1) in a VEVENT or VTODO component converts to a Participant object [RFC8984] (Section 4.4.6). The converted object is set in the participants property of the Event or Task object.¶
The property value converts to both the calendarAddress and sendTo properties of the Participant object. If the CAL-ADDRESS value is in the "mailto" scheme, then it converts to the "imip" method in the sendTo property, otherwise it converts to the "other" method.¶
The ATTENDEE property parameters convert as follows:¶
Name | Reference | Participant Property | Note |
---|---|---|---|
CN | [RFC5545], Section 3.2.2 | name | |
CUTYPE | [RFC5545], Section 3.2.3 | kind | |
DELEGATED-FROM | [RFC5545], Section 3.2.4 | delegatedFrom | |
DELEGATED-TO | [RFC5545], Section 3.2.5 | delegatedTo | |
DIR | [RFC5545], Section 3.2.6 | links | |
[RFC7986], Section 6.2 | |||
MEMBER | [RFC5545], Section 3.2.11 | memberOf | |
PARTSTAT | [RFC5545], Section 3.2.12 | participationStatus | |
ROLE | [RFC5545], Section 3.2.16 | roles | |
RSVP | [RFC5545], Section 3.2.17 | expectReply | |
SCHEDULE-AGENT | [RFC6638], Section 7.1 | scheduleAgent | |
SCHEDULE-FORCE-SEND | [RFC6638], Section 7.2 | scheduleForceSend | |
SCHEDULE-STATUS | [RFC6638], Section 7.3 | scheduleStatus |
If no ROLE parameter is set, then the "attendee" role in the roles property MUST be set.¶
Every calendar address value of the DELEGATED-FROM, DELEGATED-TO, or MEMBER parameters converts to the identifier of an Participant object. This identifier is determined by finding that Participant object in the participants property, which has a calendarAddress property value matching the parameter value. If no such Participant object exists after all properties and components have been converted, then a new Participant object having that calendarAddress property value is created. If multiple Participant objects match, then choosing the Participant identifier is implementation-specific.¶
An ATTENDEE property and a PARTICIPANT component in the same iCalendar component convert to the same Participant object, if their converted calendarAddress property values are equal after URI normalization [RFC3986] (Section 6). How to deal with conflicting values when converting other Participant properties is implementation-specific.¶
The following examples illustrate how to convert the ATTENDEE property:¶
The CALENDAR-ADDRESS property [RFC9073] (Section 6.4) in a PARTICIPANT component converts to the calendarAddress property [I-D.ietf-jmap-calendars] (Section 5.1.1) of the Participant object.¶
The following example illustrates how to convert the CALENDAR-ADDRESS property:¶
The CATEGORIES property [RFC5545] (Section 3.8.1.2) in a VEVENT, VTODO, or VCALENDAR component converts to the keywords property [RFC8984] (Section 4.2.9) of the Event, Task, or Group object.¶
The list of category values converts to a set of keywords. The values convert case-sensitively. All CATEGORIES properties in the same iCalendar component convert to the keywords property in the JSCalendar object.¶
The following example illustrates how to convert the CATEGORIES property:¶
The CLASS property [RFC5545] (Section 3.8.1.3) in a VEVENT or VTODO component converts to the privacy property [RFC8984] (Section 4.4.3) of the Event or Task object.¶
Its values convert as follows:¶
iCalendar value | JSCalendar value |
---|---|
PUBLIC | public |
PRIVATE | private |
CONFIDENTIAL | secret |
Any other value does not convert to the class property. Instead, the property converts to the iCalComponent/properties property (Section 5.1.1) of the JSCalendar object.¶
The following example illustrates how to convert the CLASS property:¶
The COLOR property [RFC7986] (Section 5.9) in a VEVENT, VTODO, or VCALENDAR component converts to the color property [RFC8984] (Section 4.2.11) of the Event, Task, or Group object.¶
Its value converts verbatim.¶
The following examples illustrate how to convert the COLOR property:¶
The COMMENT property [RFC5545] (Section 3.8.1.4) in a DAYLIGHT or STANDARD component converts to the comments property [RFC8984] (Section 4.7.2) of the TimeZoneRule object.¶
The COMMENT property [RFC5545] (Section 3.8.1.4) in a PARTICIPANT component converts to the participationComment property [RFC8984] (Section 4.4.6).¶
The COMMENT property [RFC5545] (Section 3.8.1.4) in an iTIP-scheduled [RFC5546] VEVENT or VTODO component converts to the participationComment property [RFC8984] (Section 4.4.6) of that Participant object, which represents the source of this scheduling message, if any. It otherwise converts to the iCalComponent/properties property (Section 5.1.1) of the Event or Task object.¶
Multiple COMMENT properties in a DAYLIGHT or STANDARD component convert in order of appearance in the comments property. Converting multiple COMMENT properties to the single-valued participationComment property is implementation-specific.¶
The following examples illustrate how to convert the COMMENT property:¶
The CONCEPT property [RFC9253] (Section 8.1) in a VEVENT, VTODO, or VCALENDAR component converts to the categories property [RFC8984] (Section 4.2.10) of the Event, Task, or Group object.¶
The list of URI values converts to a set of URIs. Multiple occurrences of the CONCEPT property in the same iCalendar component convert to the same categories property in the JSCalendar object.¶
The following example illustrates how to convert the CONCEPT property:¶
The CONFERENCE property [RFC7986] (Section 5.11) in a VEVENT or VTODO component converts to a VirtualLocation object [RFC8984] (Section 4.2.6). The converted object is set in the virtualLocations property of the Event or Task object.¶
The property value converts to the uri property of the VirtualLocation object.¶
Its parameters convert as follows:¶
Name | Reference | Property | Note |
---|---|---|---|
FEATURE | [RFC7986], Section 6.3 | features | |
LABEL | [RFC7986], Section 6.4 | name |
The following example illustrates how to convert the CONFERENCE property:¶
The CREATED property [RFC5545] (Section 3.8.7.1) in a VEVENT, VTODO, or VCALENDAR component converts to the created property [RFC8984] (Section 4.1.5) of the Event, Task, or Group object.¶
The following example illustrates how to convert the CREATED property:¶
The DESCRIPTION property [RFC5545] (Section 3.8.1.5) in a VEVENT, VTODO, VCALENDAR, VLOCATION, VRESOURCE, or PARTICIPANT component converts to the description property [RFC8984] (Section 4.2.2) of the Event, Task, Group, Location, Link, or Participant object, unless its DERIVED parameter value is TRUE.¶
If the DERIVED parameter value is TRUE, then the property does not convert to the description property. Instead, a non-derived STYLED-DESCRIPTION property is expected to contain the description. Implementations MAY preserve the property in the iCalComponent property (Section 5.1.1).¶
The following example illustrates how to convert the DESCRIPTION property:¶
The DTEND property [RFC5545] (Section 3.8.2.2) in a VEVENT component converts to the duration property [RFC8984] (Section 5.1.2) of the Event object.¶
The duration is the timespan between the points in time of the DTSTART and DTEND property values when converted to UTC time.¶
If the timezone identifier (Section 2.1.4) of the DTEND property differs from that of the DTSTART property, then the DTEND property also converts to a Location object. The timezone identifier converts to the timeZone property of the Location object. The relativeTo property of the Location is set to "end". The Location object is set in the locations property of the Event object.¶
Implementations MAY preserve the fact that the duration got determined by the DTEND property. How to this depends on if the timezone identifiers of DTSTART and DTEND are equal. If the identifiers are equal, then implementations MUST set the iCalComponent property (Section 5.1.1) in the Event object and there add an entry for the path "duration" in the convertedProperties property. The value MUST be an ICalProperty object with the name property set to "dtend". If instead the timezone identifiers are not equal, then implementations MUST set the iCalProperty property (Section 5.1.2) of the Location object.¶
The following examples illustrate how to convert the DTEND property:¶
The DTSTAMP property [RFC5545] (Section 3.8.7.2) in a VEVENT or VTODO component converts to the updated property [RFC8984] (Section 4.1.6) of the Event or Task object.¶
Both the LAST-MODIFIED and DTSTAMP properties convert to the updated property. If both are present in the same component, then the DTSTAMP property value has higher precedence. Implementations MAY in that case preserve the value of the LAST-MODIFIED property in the iCalComponent property.¶
An Event or Task object which has the method property set might represent an iTIP reply of one of the participants in the object. In this case the value of the updated property in the Event or Task also converts to the scheduleUpdated property [RFC8984] (Section 4.4.6) of that Participant object, which represents the participant from which the iTIP reply originated.¶
The DTSTAMP property in a PARTICIPANT component converts to the scheduleUpdated property [RFC8984] (Section 4.4.6) of the Participant object.¶
The following examples illustrate how to convert the DTSTAMP property:¶
The DTSTART property [RFC5545] (Section 3.8.2.4) in a VEVENT, VTODO, DAYLIGHT or STANDARD component converts to the start property [RFC8984] (Section 4.7.2) of the Event, Task, or TimeZoneRule object.¶
See Section 2.1.5 how to convert DATE and DATE-TIME values.¶
For VEVENT and VTODO components, the timezone identifier (Section 2.1.4) of the DTSTART property converts to the timeZone property of the Event or Task object. In addition, if the value type of the DTSTART property is DATE, then the value of the showWithoutTime property [RFC8984] (Section 4.2.4) is "true".¶
The following examples illustrate how to convert the DTSTART property for the VEVENT and VTODO components. See Section 2.2.6 for examples how to convert the DTSTART property for the DAYLIGHT and STANDARD components.¶
The DUE property [RFC5545] (Section 3.8.2.3) in a VTODO component converts to the due property [RFC8984] (Section 5.2.1) of the Task object.¶
See Section 2.1.5 how to convert DATE and DATE-TIME values.¶
If the VTODO component does not contain a DTSTART property, then the timezone identifier (Section 2.1.4) of the DUE property converts to the timeZone property of the Task object. If instead the VTODO component contains both the DUE and DTSTART properties, then the timezone identifier of the DUE property does not convert to a standard JSCalendar element. The value of the due property MUST denote the date and time relative to the timezone of the DTSTART property.¶
If the value type of the DUE property is DATE, then the value of the showWithoutTime property [RFC8984] (Section 4.2.4) is "true".¶
The following examples illustrate how to convert the DUE property:¶
The DURATION property [RFC5545] (Section 3.8.2.5) in a VEVENT or VTODO component converts to the duration property [RFC8984] (Section 5.1.2) of the Event or Task object.¶
The following example illustrates how to convert the DURATION property:¶
The EXDATE property [RFC5545] (Section 3.8.5.1) of value type DATE or DATE-TIME in a VEVENT or VTODO component converts to a PatchObject object [RFC8984] (Section 1.4.9). The converted object is set in the recurrenceOverrides property of the Event or Task object.¶
The property value converts to the key in the recurrenceOverrides property value. See Section 2.1.5 how to convert DATE and DATE-TIME values. The date-time MUST be relative to the timezone identified by the timeZone property of the Event or Task. The PatchObject value MUST set the excluded property to "true" and MUST NOT set any other property.¶
An EXDATE property of value type PERIOD does not convert to a standard JSCalendar element. Implementations MAY convert it to the iCalComponent property (Section 5.1.1) of the Event or Task object.¶
The following example illustrates how to convert the EXDATE property:¶
The EXRULE property [RFC2445] (Section 4.8.5.2) in a VEVENT or VTODO component converts to a RecurrenceRule object [RFC8984] (Section 4.3.3). The converted object is set in the excludedRecurrenceRules property of the Event or Task.¶
See Section 2.3.38 for an example how to convert a recurrence rule.¶
The GEO property [RFC5545] (Section 3.8.1.6) in a VLOCATION component converts to the coordinates property [RFC8984] (Section 4.2.5).¶
The GEO property [RFC5545] (Section 3.8.1.6) in a VEVENT, VTODO, PARTICIPANT or VRESOURCE component converts to a Location object [RFC8984] (Section 4.2.5). The converted object is set in the locations property of the Event, Task, or Participant object.¶
The pair of FLOAT values converts to an URI with the "geo" scheme [RFC5870]. The first FLOAT value converts to the "coord-a" part of the URI, the second FLOAT value to the "coord-b" part. A preceding plus sign (+) of the FLOAT value MUST be omitted, a preceding minus sign (-) MUST be preserved. The third, altitude coordinate MUST NOT be set, unless its value is known.¶
The following examples illustrate how to convert the GEO property:¶
The IMAGE property [RFC7986] (Section 5.10) in a VEVENT, VTODO, VLOCATION, or VRESOURCE component converts to a Link object [RFC8984] (Section 1.4.11). The converted object is set in the links property of the Event, Task, Location, or Participant object.¶
The property value converts to the href property of the Link object. A value of type URI converts as-is. See Section 2.3.3 how to convert a BINARY value. If the DISPLAY parameter is set, then the "rel" property of the Link object MUST be set to "icon".¶
Its parameters convert as follows:¶
Name | Reference | Property | Note |
---|---|---|---|
DISPLAY | [RFC7986], Section 6.1 | display | |
FMTTYPE | [RFC5545], Section 3.2.8 | contentType | |
SIZE | [RFC8607], Section 4.1 | size |
Implementations MAY preserve the fact that the Link object got converted from an IMAGE property. To so, they MUST set the iCalProperty (Section 5.1.2) on the Link object.¶
The following example illustrates how to convert the IMAGE property:¶
The LAST-MODIFIED property [RFC5545] (Section 3.8.7.3) in a VEVENT, VTODO, VCALENDAR, or VTIMEZONE component converts to the updated property [RFC8984] (Section 4.1.6) of the Event, Task, Group, or TimeZone object.¶
Both the LAST-MODIFIED and DTSTAMP properties convert to the updated property. If both are present in the same component, then the DTSTAMP property value has higher precedence. Implementations MAY in that case preserve the value of the LAST-MODIFIED property in the iCalComponent property.¶
The following example illustrates how to convert the LAST-MODIFIED property:¶
The LINK property [RFC9253] (Section 8.2) in a VEVENT, VTODO, VCALENDAR, VRESOURCE, PARTICIPANT, or VLOCATION component converts to a Link object [RFC8984] (Section 1.4.11) under the following conditions:¶
The converted object is set in the links property of the Event, Task, Group, Participant, or Location object. The LINK property value converts to the href property of the Link object.¶
Its parameters convert as follows:¶
Name | Reference | Property | Note |
---|---|---|---|
FMTTYPE | [RFC5545], Section 3.2.8 | contentType | |
LABEL | [RFC7986], Section 6.4 | title | |
LINKREL | [RFC9253], Section 6.1 | rel |
A LINK property with a value type other than URI or an unregistered LINK parameter value does not convert to a standard JSCalendar element. Implementations MAY convert it to the iCalComponent property (Section 5.1.1).¶
The following examples illustrate how to convert the LINK property:¶
The LOCATION property [RFC5545] (Section 3.8.1.7) in a VEVENT, VTODO, or PARTICIPANT component converts to a Location object [RFC8984] (Section 4.2.5), unless its DERIVED parameter value is TRUE. The converted object is set in the locations property of the Event, Task, or Participant object.¶
The property value converts to the title property of the Location object.¶
If the DERIVED parameter value is TRUE, then the property does not convert to a Location object. Instead, a VLOCATION component is expected to represent the location. Implementations MAY preserve the property in the iCalComponent property (Section 5.1.1).¶
The following example illustrates how to convert the LOCATION property:¶
The LOCATION-TYPE property [RFC9073] (Section 6.1) in a VLOCATION component converts to the locationTypes property [RFC8984] (Section 4.2.5).¶
The list of location type values converts to a set of location types. The values convert case-sensitively. All LOCATION-TYPE properties in the same VLOCATION convert to the locationTypes property in the Location object.¶
The following example illustrates how to convert the LOCATION-TYPE property:¶
The METHOD property [RFC5545] (Section 3.7.2) in a VCALENDAR component converts to the method property [RFC8984] (Section 4.1.8) of all Event or Task objects that are listed in the Group object's entries property.¶
The property value converts in lowercase.¶
The following example illustrates how to convert the METHOD property:¶
The NAME property [RFC7986] (Section 5.1) in a VLOCATION or VRESOURCE component converts to the name property of the Location [RFC8984] (Section 4.2.5) or Participant [RFC8984] (Section 4.4.6) object.¶
The NAME property [RFC7986] (Section 5.1) in a VCALENDAR component converts to the title property [RFC8984] (Section 4.2.1) of the Group object.¶
The following examples illustrate how to convert the NAME property:¶
The ORGANIZER property [RFC5545] (Section 3.8.4.3) in a VEVENT or VTODO component converts to the replyTo property [RFC8984] (Section 4.4.4). In addition, it converts to a Participant object in the participants property [RFC8984] (Section 4.4.6).¶
If the CAL-ADDRESS property value is in the "mailto" scheme, then it converts to the "imip" method in the replyTo property, otherwise it converts to the "other" method. The property value also converts to the calendarAddress property of the Participant object. The "owner" role is set in the roles property of the Participant. In contrast to the ATTENDEE property, the property value does not convert to the sendTo property of the Participant object.¶
An ORGANIZER property, an ATTENDEE property, and a PARTICIPANT component in the same iCalendar component all convert to the same Participant object, if their converted calendarAddress property values are equal after URI normalization [RFC3986] (Section 6). How to deal with conflicting values when converting other Participant properties is implementation-specific.¶
Implementations MAY preserve arbitrary parameters of the ORGANIZER property, in which case they MUST convert these to a "replyTo" entry in the convertedProperties property of the Event or Task object's iCalComponent property (Section 5.1.1).¶
The ORGANIZER property parameters convert as follows:¶
Name | Reference | Property | Note |
---|---|---|---|
CN | [RFC5545], Section 3.2.2 | name | |
DIR | [RFC5545], Section 3.2.6 | links |
The following examples illustrate how to convert the ORGANIZER property:¶
The PARTICIPANT-TYPE property [RFC9073] (Section 6.2) in a PARTICIPANT component converts to the roles property [RFC8984] (Section 4.4.6) of the Participant object.¶
The property value converts in lowercase.¶
The following example illustrates how to convert the PARTICIPANT-TYPE property:¶
The PERCENT-COMPLETE property [RFC5545] (Section 3.8.1.8) in a VTODO component converts to the percentComplete property [RFC8984] (Section 5.2.4) of the Task object.¶
A Task object which has the method property set might represent an iTIP reply of one of the participants in the object. In this case the value of the percentComplete property in the Task also converts to the percentComplete [RFC8984] (Section 4.4.6) of that Participant object, which represents the participant from which the iTIP reply originated.¶
The PERCENT-COMPLETE property in a PARTICIPANT component converts to the percentComplete property [RFC8984] (Section 4.4.6) of the Participant object.¶
The following examples illustrate how to convert the PERCENT-COMPLETE property:¶
The PRIORITY property [RFC5545] (Section 3.8.1.9) in a VEVENT or VTODO component converts to the priority property [RFC8984] (Section 4.4.1) of the Event or Task object.¶
The following example illustrates how to convert the PRIORITY property:¶
The PRODID property [RFC5545] (Section 3.7.3) in a VCALENDAR component converts to the prodId property [RFC8984] (Section 4.1.4) of the Group object, and to the prodId property of all Event or Task objects that are listed in the Group object's entries property.¶
The property value converts verbatim.¶
The following example illustrates how to convert the PRODID property:¶
The RDATE property [RFC5545] (Section 3.8.5.2) of type DATE or DATE-TIME in a VEVENT, VTODO, DAYLIGHT or STANDARD component converts to a PatchObject object [RFC8984] (Section 1.4.9). The converted object is set in the recurrenceOverrides property of the Event, Task, or TimeZoneRule object.¶
The property value converts to the key in the recurrenceOverrides property value. See Section 2.1.5 how to convert DATE and DATE-TIME values. For Event Task objects, the date-time MUST be relative to the timezone identified by the timeZone property, for TimeZoneRule objects the date-time is relative to the UTC offset specified in the offsetFrom property. The PatchObject value MUST be an empty JSON object.¶
An RDATE property of value type PERIOD does not convert to a standard JSCalendar element. Implementations MAY convert it to the iCalComponent property (Section 5.1.1) of the Event, Task, or TimeZoneRule object.¶
The following example illustrates how to convert the RDATE property:¶
The RECURRENCE-ID property [RFC5545] (Section 3.8.4.4) in a VEVENT or VTODO component converts to the recurrenceId property [RFC8984] (Section 4.3.1) of the Event or Task object. The timezone identifier (Section 2.1.4) of the RECURRENCE-ID property converts to the recurrenceIdTimeZone property.¶
See Section 2.1.5 how to convert DATE and DATE-TIME values.¶
The RANGE parameter [RFC5545] (Section 3.2.13) does not convert to a standard JSCalendar element. Implementations MAY preserve it in the iCalComponent (Section 5.1.1) property.¶
See Section 2.1.2 for further requirements and examples.¶
The REQUEST-STATUS property [RFC5545] (Section 3.8.8.3) in a VEVENT or VTODO component converts to the requestStatus property [RFC8984] (Section 4.4.7) of the Event or Task object.¶
The following example illustrates how to convert the REQUEST-STATUS property:¶
The RRULE property [RFC5545] (Section 3.8.5.3) in a VEVENT, VTODO, DAYLIGHT or STANDARD component converts to a RecurrenceRule object [RFC8984] (Section 4.3.3). The converted object is set in the recurrenceRules property of the Event, Task, or TimeZoneRule object.¶
The RECUR value data type converts to a RecurrenceRule object as follows:¶
RRULE field | RecurrenceRule property |
---|---|
FREQ | frequency |
UNTIL | until |
COUNT | count |
INTERVAL | interval |
BYSECOND | bySecond |
BYMINUTE | byMinute |
BYHOUR | byHour |
BYDAY | byDay |
BYMONTHDAY | byMonthDay |
BYYEARDAY | byYearDay |
BYWEEKNO | byWeekNo |
BYMONTH | byMonth |
BYSETPOS | bySetPosition |
WKST | firstDayOfWeek |
RSCALE [RFC7529] | rscale |
SKIP [RFC7529] | skip |
The string values of the FREQ, WKST, RSCALE convert to lowercase. The UNTIL part in a VEVENT or VTODO converts to a LocalDateTime value relative to the timezone of the Event or Task, or to floating time for the TimeZoneRule object.¶
The following example illustrates how to convert the RRULE property:¶
The SEQUENCE property [RFC5545] (Section 3.8.7.4) in a VEVENT or VTODO component converts to the sequence property [RFC8984] (Section 4.1.7) of the Event or Task object. The SEQUENCE property in a PARTICIPANT component converts to the scheduleSequence property [RFC8984] (Section 4.4.6) of the Participant object.¶
The following example illustrates how to convert the SEQUENCE property:¶
The STATUS property [RFC5545] (Section 3.8.1.11) in a VEVENT component converts to the status property [RFC8984] (Section 5.1.3) of the Event object. The STATUS property in a VTODO component converts to the progress property [RFC8984] (Section 5.2.5) of the Task object.¶
The property value converts in lowercase.¶
The following examples illustrate how to convert the STATUS property:¶
The SOURCE property [RFC7986] (Section 5.8) in a VCALENDAR component converts to the source property [RFC8984] (Section 5.3.2).¶
The following example illustrates how to convert the SOURCE property:¶
The STRUCTURED-DATA property [RFC9073] (Section 6.6) of type URI or BINARY in a VEVENT, VTODO, VCALENDAR, VRESOURCE, PARTICIPANT, or VLOCATION component converts to a Link object [RFC8984] (Section 1.4.11). The converted object is set in the links property of the Event, Task, Group, Participant, or Location object.¶
The property value converts to the href property of the Link object. A value of type URI converts as-is. See Section 2.3.3 how to convert a BINARY value.¶
Its parameters convert as follows:¶
Name | Reference | Property | Note |
---|---|---|---|
FMTTYPE | [RFC5545], Section 3.2.8 | contentType |
Implementations MAY preserve the fact that the Link object got converted from a STRUCTURED-DATA property. To so, they MUST set the iCalProperty (Section 5.1.2) on the Link object.¶
The following example illustrates how to convert the STRUCTURED-DATA property:¶
The STYLED-DESCRIPTION property [RFC9073] (Section 6.5) in a VEVENT or VTODO component converts to the description property [RFC8984] (Section 4.2.2) under the following conditions:¶
If the DERIVED parameter value is TRUE, then the property does not convert to the description property. Instead, an non-derived STYLED-DESCRIPTION property or the DESCRIPTION property is expected to contain the description. Implementations MAY preserve the property in the iCalComponent property (Section 5.1.1).¶
Its parameters convert as follows:¶
Name | Reference | Property | Note |
---|---|---|---|
FMTTYPE | [RFC5545], Section 3.2.8 | descriptionContentType |
The following example illustrates how to convert the STYLED-DESCRIPTION property:¶
The SUMMARY property [RFC5545] (Section 3.8.1.12) in a VEVENT or VTODO component converts to the title property [RFC8984] (Section 4.2.1).¶
The SUMMARY property [RFC5545] (Section 3.8.1.12) in a PARTICIPANT component converts to the name property [RFC8984] (Section 4.2.5).¶
The following examples illustrate how to convert the SUMMARY property:¶
The TRANSP property [RFC5545] (Section 3.8.2.7) in a VEVENT or VTODO component converts to the freeBusyStatus property [RFC8984] (Section 4.4.2).¶
Its values convert as follows:¶
iCalendar value | JSCalendar value |
---|---|
OPAQUE | busy |
TRANSPARENT | free |
The following example illustrates how to convert the TRANSP property:¶
The TRIGGER property [RFC5545] (Section 3.8.6.3) in a VALARM component converts to either an AbsoluteTrigger or OffsetTrigger object. The converted object is set in the trigger property [RFC8984] (Section 4.5.2) of the Alert object.¶
A property of value type DURATION converts an OffsetTrigger object. The property value converts to its offset property. A value of type DATE-TIME converts to an AbsoluteTrigger object. The property value converts to its when property.¶
Its parameters convert as follows:¶
Name | Reference | Property | Note |
---|---|---|---|
RELATED | [RFC5545], Section 3.2.14 | relativeTo | If VALUE=DURATION |
The following examples illustrate how to convert the TRIGGER property:¶
The TZID property [RFC5545] (Section 3.8.3.1) in a VTIMEZONE component converts to the tzId property [RFC8984] (Section 4.7.2).¶
The TZID-ALIAS-OF property [RFC7808] (Section 7.2) in a VTIMEZONE component converts to an entry in the aliases property [RFC8984] (Section 4.7.2) of the TimeZone object.¶
The TZNAME property [RFC5545] (Section 3.8.3.2) in a DAYLIGHT or STANDARD component converts to an entry in the names property [RFC8984] (Section 4.7.2) of the TimeZoneRule object.¶
The TZOFFSETFROM property [RFC5545] (Section 3.8.3.3) in a DAYLIGHT or STANDARD component converts to the offsetFrom property [RFC8984] (Section 4.7.2) of the TimeZoneRule object.¶
The TZOFFSETTO property [RFC5545] (Section 3.8.3.4) in a DAYLIGHT or STANDARD component converts to the offsetTo property [RFC8984] (Section 4.7.2) of the TimeZoneRule object.¶
The TZUNTIL property [RFC7808] (Section 7.1) in a VTIMEZONE component converts to the validUntil property [RFC8984] (Section 4.7.2).¶
See Section 2.1.5 how to convert DATE and DATE-TIME values.¶
The TZURL property [RFC5545] (Section 3.8.3.5) in a VTIMEZONE component converts to the url property [RFC8984] (Section 4.7.2) of the TimeZone object.¶
The UID property [RFC5545] (Section 3.8.4.7) in a VEVENT, VTODO, or VCALENDAR component converts to the uid property [RFC8984] (Section 4.1.2).¶
The following example illustrates how to convert the UID property:¶
The URL property [RFC5545] (Section 3.8.4.6) in a VEVENT, VTODO, VCALENDAR, or PARTICIPANT component converts to a Link object [RFC8984] (Section 1.4.11). The converted object is set in the links property of the Event, Task, Group, or Participant object.¶
The property value converts to the href property of the Link object.¶
Implementations MAY preserve the fact that the Link object got converted from an URL property. To so, they MUST set the iCalProperty (Section 5.1.2) on the Link object.¶
The following example illustrates how to convert the URL property:¶
The Alert object [RFC8984] (Section 4.5.2) converts to a VALARM component (Section 2.2.2).¶
Its properties convert as follows:¶
Name | Reference | Property (or other) | See |
---|---|---|---|
acknowledged | [RFC8984], Section 4.5.2 | ACKNOWLEDGED | Section 2.3.1 |
action | [RFC8984], Section 4.5.2 | ACTION | Section 2.3.2 |
relatedTo | [RFC8984], Section 4.1.3 | RELATED-TO |
Section 2.3.36, and remarks below¶ |
trigger | [RFC8984], Section 4.5.2 | TRIGGER | Section 2.3.46 |
Remarks:¶
The value of the RELATED-TO property is the UID property value of that VALARM component, to which the related Alert object converts to. Consequently, the UID property for such a VALARM MUST be set, otherwise the UID property SHOULD be set.¶
The Event object [RFC8984] (Section 2.1) converts to a VEVENT component (Section 2.2.3), the Task object [RFC8984] (Section 2.2) converts to a VTODO component (Section 2.2.7).¶
The following table defines how to convert properties that are common to both the Event and Task object types. Table 30 and Table 31 later in this section define how to convert properties specific to either Event or Task objects.¶
Name | Reference | Property (or other) | See |
---|---|---|---|
alerts | [RFC8984], Section 4.5.2 | VALARM (component) | Alert object (Section 3.1) |
categories | [RFC8984], Section 4.2.10 | CONCEPT | Section 2.3.10 |
color | [RFC8984], Section 4.2.11 | COLOR | Section 2.3.8 |
created | [RFC8984], Section 4.1.5 | CREATED | Section 2.3.12 |
description | [RFC8984], Section 4.2.2 | DESCRIPTION, or STYLED-DESCRIPTION |
Section 2.3.13, Section 2.3.43, and remarks below¶ |
descriptionContentType | [RFC8984], Section 4.2.3 | FMTTYPE (parameter) of STYLED-DESCRIPTION |
Section 2.3.43, and remarks below¶ |
excluded | [RFC8984], Section 4.3.6 |
Section 2.3.19, and remarks about recurrenceOverrides below¶ |
|
excludedRecurrenceRules | [RFC8984], Section 4.3.4 | EXRULE | |
freeBusyStatus | [RFC8984], Section 4.4.2 | TRANSP | |
keywords | [RFC8984], Section 4.2.9 | CATEGORIES | |
links | [RFC8984], Section 4.2.7 | ATTACH, or other | |
locale | [RFC8984], Section 4.2.8 | TBD | |
localizations | [RFC8984], Section 4.6.1 | TBD | |
locations | [RFC8984], Section 4.2.5 | LOCATION, GEO, or VLOCATION (component) | |
method | [RFC8984], Section 4.1.8 | METHOD of iCalendar object | |
participants | [RFC8984], Section 4.4.6 | ATTENDEE, or PARTICIPANT (component) | |
priority | [RFC8984], Section 4.4.1 | PRIORITY | |
privacy | [RFC8984], Section 4.4.3 | CLASS | |
prodId | [RFC8984], Section 4.1.4 | PRODID of iCalendar object | |
recurrenceId | [RFC8984], Section 4.3.1 | RECURRENCE-ID | |
recurrenceIdTimeZone | [RFC8984], Section 4.3.2 | TZID (parameter) of RECURRENCE-ID | |
recurrenceOverrides | [RFC8984], Section 4.3.5 | RDATE, EXDATE or recurrence override component | Section 2.1.2, and remarks below |
recurrenceRules | [RFC8984], Section 4.3.3 | RRULE | |
relatedTo | [RFC8984], Section 4.1.3 | RELATED-TO | |
replyTo | [RFC8984], Section 4.4.4 | ORGANIZER |
Section 2.3.29, and remarks below¶ |
requestStatus | [RFC8984], Section 4.4.7 | REQUEST-STATUS | |
sentBy | [RFC8984], Section 4.4.5 | TBD | |
sequence | [RFC8984], Section 4.1.7 | SEQUENCE | |
showWithoutTime | [RFC8984], Section 4.2.4 | TBD | |
start | [RFC8984], Section 4.7.2 | DTSTART | |
timeZone | [RFC8984], Section 4.7.1 | TZID (parameter) of DTSTART and DUE | |
timeZones | [RFC8984], Section 4.7.2 | VTIMEZONE (component) of iCalendar object | |
title | [RFC8984], Section 4.2.1 | SUMMARY | |
uid | [RFC8984], Section 4.1.2 | UID | |
updated | [RFC8984], Section 4.1.6 | DTSTAMP, and LAST-MODIFIED | |
useDefaultAlerts | [RFC8984], Section 4.5.1 | TBD | |
virtualLocations | [RFC8984], Section 4.2.6 | CONFERENCE |
Remarks:¶
The descriptionContentType property value determines if to convert the description property to the DESCRIPTION or STYLED-DESCRIPTION property. A description of content type "text/plain" converts to the DESCRIPTION property. Any other description converts to a STYLED-DESCRIPTION; in this case, a plain text version of the rich-text description SHOULD be set in the DESCRIPTION property and its DERIVED parameter MUST be set to "TRUE".¶
The entries in the recurrenceOverrides property convert depending on the contents of the patch object value. A patch object that sets the excluded property to "true" converts to an EXDATE property for the date-time of that recurrence instance. An empty patch object converts to an RDATE property. Any other patch object converts to a recurrence override component in the embedding VCALENDAR component.¶
The replyTo property converts to the ORGANIZER property. If the replyTo property value only defines a single scheduling method then the URI value of that method converts to the ORGANIZER property value. If the replyTo property defines multiple scheduling methods, and a Participant object with a calendarAddress property value matching one of the replyTo URIs exists in the same Event or Task, then the URI matching the calendarAddress property converts to the ORGANIZER property value. Otherwise choosing the ORGANIZER property value is implementation-specific. TBD how to convert other replyTo methods.¶
Properties specific to the Event object type convert to iCalendar properties as follows:¶
Name | Reference | Property (or other) | See |
---|---|---|---|
duration | [RFC8984], Section 5.1.2 | DURATION, or DTEND | |
status | [RFC8984], Section 5.1.3 | STATUS |
Properties specific to the Task object type convert to iCalendar properties as follows:¶
Name | Reference | Property (or other) | See |
---|---|---|---|
due | [RFC8984], Section 5.2.1 | DUE | |
estimatedDuration | [RFC8984], Section 5.2.3 | TBD | |
percentComplete | [RFC8984], Section 5.2.4 | PERCENT-COMPLETE | |
progress | [RFC8984], Section 5.2.5 | STATUS | |
progressUpdated | [RFC8984], Section 5.2.6 | TBD |
The Group object [RFC8984] (Section 2.3) converts to a VCALENDAR component (Section 2.1.1).¶
Its properties convert as follows:¶
Name | Reference | Property (or other) | See |
---|---|---|---|
categories | [RFC8984], Section 4.2.10 | CONCEPT | |
color | [RFC8984], Section 4.2.11 | COLOR | |
created | [RFC8984], Section 4.1.5 | CREATED | |
entries | [RFC8984], Section 5.3.1 | VEVENT or VTODO (component) |
Event and Task object (Section 3.2), and remarks below¶ |
keywords | [RFC8984], Section 4.2.9 | CATEGORIES | |
links | [RFC8984], Section 4.2.7 | ATTACH, or other | |
locale | [RFC8984], Section 4.2.8 | TBD | |
prodId | [RFC8984], Section 4.1.4 | PRODID |
Section 2.3.33, and remarks below¶ |
source | [RFC8984], Section 5.3.2 | SOURCE | |
title | [RFC8984], Section 4.2.1 | NAME | |
uid | [RFC8984], Section 4.1.2 | UID | |
updated | [RFC8984], Section 4.1.6 | LAST-MODIFIED |
Remarks:¶
The prodId property value of the Group object is expected to be equal to the prodId property value of all the Group entries. They all convert to the same, single PRODID property in the VCALENDAR component. How to convert unequal prodId property values is implementation-specific.¶
The method property value in all the Group entries is expected to be equal. How to convert entries with unequal method property values is implementation-specific.¶
The Link object [RFC8984] (Section 1.4.11) converts either an ATTACH property (Section 2.3.3), an IMAGE property (Section 2.3.22), a LINK property (Section 2.3.24), a STRUCTURED-DATA property (Section 2.3.42), or an URL property (Section 2.3.55). Which iCalendar property to choose is implementation-specific. As a guideline:¶
The href property converts to the iCalendar property value. The other Link properties convert as follows:¶
Name | Reference | Parameter (or other) | See |
---|---|---|---|
cid | [RFC8984], Section 1.4.11 | TBD | |
contentType | [RFC8984], Section 1.4.11 | FMTTYPE | Section 2.3.3 |
display | [RFC8984], Section 1.4.11 | DISPLAY | Section 2.3.22 |
rel | [RFC8984], Section 1.4.11 | LINKREL | Section 2.3.24, and remarks below |
size | [RFC8984], Section 1.4.11 | SIZE | Section 2.3.3 |
title | [RFC8984], Section 4.2.1 | TBD |
Remarks:¶
The Location object [RFC8984] (Section 4.2.5) converts to either a LOCATION (Section 2.3.25), GEO (Section 2.3.21), or DTEND (Section 2.3.21) property, or it converts to a VLOCATION component (Section 2.2.4). Which iCalendar element to choose is implementation-specific. As a guideline:¶
Implementations MAY convert one of the Location objects that convert to a VLOCATION also to the LOCATION property; converting the title or description property to the LOCATION property value is a reasonable choice. The DERIVED parameter MUST be set on the LOCATION property.¶
The properties convert to a VLOCATION component as follows:¶
Name | Reference | Property (or other) | See |
---|---|---|---|
coordinates | [RFC8984], Section 4.2.5 | GEO | Section 2.3.21 |
description | [RFC8984], Section 4.2.2 | DESCRIPTION | Section 2.3.13 |
links | [RFC8984], Section 4.2.7 | ATTACH, or other | |
locationTypes | [RFC8984], Section 4.2.5 | LOCATION-TYPE | Section 2.3.26 |
name | [RFC8984], Section 4.2.5 | NAME | Section 2.3.28 |
relativeTo | [RFC8984], Section 4.5.2 | TBD | |
timeZone | [RFC8984], Section 4.7.1 | TBD |
The Participant object [RFC8984] (Section 4.4.6) either converts to one of an ATTENDEE property (Section 2.3.4), a PARTICIPANT component (Section 2.2.1), or a VRESOURCE component (Section 2.2.5); or it converts to both an ATTENDEE property and a PARTICIPANT component:¶
It converts to an ATTENDEE property if at least one of the calendarAddress [I-D.ietf-jmap-calendars] (Section 5.1.1) or sendTo [RFC8984] (Section 4.4.6) properties is set. The calendarAddress property converts to the ATTENDEE property value, if set; otherwise one of the scheduling methods in the sendTo property converts to the ATTENDEE property value.¶
It converts to a PARTICIPANT component if it converts to an ATTENDEE property but not all of its properties convert to ATTENDEE property parameters as depicted in Table 35. In this case the CALENDAR-ADDRESS property value of the PARTICIPANT MUST be set to the ATTENDEE property value. Alternatively, the Participant object also converts to a PARTICIPANT component if it does not convert to an ATTENDEE property but its kind property value is unequal to "resource".¶
It converts to a VRESOURCE component if it does not convert to an ATTENDEE property and its kind property value is "resource".¶
The following Participant properties convert to the ATTENDEE property. How to convert these properties if the Participant does not convert to an ATTENDEE is implementation-specific.¶
Remarks:¶
The "optional" role converts to the "OPT-PARTICIPANT" ROLE parameter value, the "chair" role to "CHAIR", "informational" to "NON-PARTICIPANT". The "attendee" role does convert to the ROLE parameter, it is implied by the ATTENDEE property. The "owner" role does not convert to the ROLE parameter, if the property value of the ATTENDEE is equal to the value of the ORGANIZER property in the same component. All other roles require a PARTICIPANT component and convert to the PARTICIPANT-TYPE property in that component.¶
The following Participant properties convert to the PARTICIPANT or VRESOURCE component:¶
Name | Reference | Property (or other) | See |
---|---|---|---|
description | [RFC8984], Section 4.2.2 | DESCRIPTION | Section 2.3.13 |
language | [RFC8984], Section 4.4.6 | TBD | |
links | [RFC8984], Section 4.2.7 | ATTACH, or other | |
locationId | [RFC8984], Section 4.4.6 | TBD | |
name | [RFC8984], Section 4.2.5 | NAME | |
participationComment | [RFC8984], Section 4.4.6 | COMMENT | |
percentComplete | [RFC8984], Section 5.2.4 | PERCENT-COMPLETE | |
progress | [RFC8984], Section 5.2.5 | TBD | |
progressUpdated | [RFC8984], Section 5.2.6 | TBD | |
roles | [RFC8984], Section 4.4.6 | PARTICIPANT-TYPE | Section 2.3.30 |
The TimeZone object [RFC8984] (Section 4.7.2) converts to a VTIMEZONE component (Section 2.2.6).¶
Its properties convert as follows:¶
Name | Reference | Property (or other) | See |
---|---|---|---|
aliases | [RFC8984], Section 4.7.2 | TZID-ALIAS-OF | |
daylight | [RFC8984], Section 4.7.2 | DAYLIGHT (component) |
TimeZoneRule below¶ |
standard | [RFC8984], Section 4.7.2 | STANDARD (component) |
TimeZoneRule below¶ |
tzId | [RFC8984], Section 4.7.2 | TZID | |
url | [RFC8984], Section 4.7.2 | TZURL | |
validUntil | [RFC8984], Section 4.7.2 | TZUNTIL |
The TimeZoneRule object [RFC8984] (Section 4.7.2) converts to a DAYLIGHT or STANDARD component (Section 2.2.6).¶
Its properties convert as follows:¶
Name | Reference | Property (or other) | See |
---|---|---|---|
comments | [RFC8984], Section 4.7.2 | COMMENT | |
names | [RFC8984], Section 4.7.2 | TZNAME | |
offsetFrom | [RFC8984], Section 4.7.2 | TZOFFSETFROM | |
offsetTo | [RFC8984], Section 4.7.2 | TZOFFSETTO | |
recurrenceOverrides | [RFC8984], Section 4.3.5 | RDATE | |
recurrenceRules | [RFC8984], Section 4.3.3 | RRULE | |
start | [RFC8984], Section 4.7.2 | DTSTART |
The VirtualLocation object [RFC8984] (Section 4.2.6) converts to a CONFERENCE property (Section 2.3.11).¶
The uri property converts to the CONFERENCE property value. Its other properties convert as follows:¶
Name | Reference | Parameter (or other) | See |
---|---|---|---|
description | [RFC8984], Section 4.2.2 | TBD | |
features | [RFC8984], Section 4.2.6 | FEATURE | Section 2.3.11 |
name | [RFC8984], Section 4.2.5 | LABEL | Section 2.3.11 |
ICalComponent
(optional)¶
This contains information about an iCalendar component that got partially or fully converted to JSCalendar. It allows to preserve the name of the iCalendar component and some or all of its properties and subcomponents.¶
An ICalComponent object has the following properties:¶
This contains conversion-related information about the component's properties that got partially or fully converted to JSCalendar. Each key defines the path to a property of the JSCalendar object on which the iCalComponent property is set on. The value for each key contains information about the iCalendar property which converted to the object property located at that key (see Section 5.1.2).¶
The key MUST be a valid key of a PatchObject as defined in Section 1.4.9 of [RFC8984]. The key MUST NOT point into a nested property, unless there is no way to otherwise preserve the iCalendar property elements. For example, if a VEVENT contains an ATTENDEE property, then any iCalendar information about the ATTENDEE property MUST be set in the iCalProperty property of the converted Participant object (see Section 2.3.4). In contrast, information about a RDATE property contained in a VEVENT would be located by a key pointing into the recurrenceOverrides
property of the Event object (see Section 2.3.34).¶
ICalProperty
(optional)¶
This contains conversion-related information about an iCalendar property that got partially or fully converted to JSCalendar. It allows to preserve the name of the iCalendar property and some or all of its parameters.¶
An ICalProperty object has the following properties:¶
Id[Location]
(optional)¶
This section highlights iCalendar and JSCalendar elements for which no conversion rule to a standard element is defined in this document. This is informational; implementations MAY convert these elements, for example by use of the special-purpose properties defined in this document, or some vendor-specific extension properties. Alternatively newer standards might define new standard elements and register them at IANA.¶
The following components do not convert to a standard element in JSCalendar:¶
The following components are defined to contain the listed properties. But these properties do not convert to a standard JSCalendar element.¶
The following properties convert to a standard JSCalendar element for some other value type, but they do not for the listed value types.¶
The following properties are defined to contain the listed parameters. But these parameters do not convert to a standard JSCalendar element.¶
Unfinished JSCalendar elements and conversion rules are marked with the term "TBD" in Section 3.¶