Function: org-icalendar--vcalendar

org-icalendar--vcalendar is a byte-compiled function defined in ox-icalendar.el.gz.

Signature

(org-icalendar--vcalendar NAME OWNER TZ DESCRIPTION TTL CONTENTS)

Documentation

Create a VCALENDAR component.

NAME, OWNER, TZ, DESCRIPTION, TTL and CONTENTS are all strings giving, respectively, the name of the calendar, its owner, the timezone used, a short description, time to live (refresh period) and the other components included.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-icalendar.el.gz
(defun org-icalendar--vcalendar (name owner tz description ttl contents)
  "Create a VCALENDAR component.
NAME, OWNER, TZ, DESCRIPTION, TTL and CONTENTS are all strings giving,
respectively, the name of the calendar, its owner, the timezone
used, a short description, time to live (refresh period) and
the other components included."
  (org-icalendar-fold-string
   (concat (format "BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:%s
PRODID:-//%s//Emacs with Org mode//EN
X-WR-TIMEZONE:%s
X-WR-CALDESC:%s\n"
		   (org-icalendar-cleanup-string name)
		   (org-icalendar-cleanup-string owner)
		   (org-icalendar-cleanup-string tz)
		   (org-icalendar-cleanup-string description))
           (when ttl (format "X-PUBLISHED-TTL:%s\n"
                             (org-icalendar-cleanup-string ttl)))
           "CALSCALE:GREGORIAN\n"
	   contents
	   "END:VCALENDAR\n")))