Function: icalendar-read-period

icalendar-read-period is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-read-period S)

Documentation

Read an icalendar-period from a string S.

S should have been matched against rx icalendar-period.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:read-period (s)
  "Read an `icalendar-period' from a string S.
S should have been matched against rx `icalendar-period'."
  ;; TODO: this smells like a design flaw.  Silence the byte compiler for now.
  (ignore s)
  (let ((start (ical:read-date-time (match-string 11)))
        (end (when (match-string 12) (ical:read-date-time (match-string 12))))
        (dur (when (match-string 13) (ical:read-dur-value (match-string 13)))))
    (ical:make-period start :end end :duration dur)))