Function: icalendar-period-end
icalendar-period-end is a byte-compiled function defined in
icalendar-parser.el.gz.
Signature
(icalendar-period-end PERIOD &optional VTIMEZONE)
Documentation
Return the icalendar-date-time which marks the end of PERIOD.
If the end is not explicitly specified, it will be computed from the
period's start and duration. VTIMEZONE, if given, should be the
icalendar-vtimezone in which to compute the end time.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:period-end (period &optional vtimezone)
"Return the `icalendar-date-time' which marks the end of PERIOD.
If the end is not explicitly specified, it will be computed from the
period's start and duration. VTIMEZONE, if given, should be the
`icalendar-vtimezone' in which to compute the end time."
(require 'icalendar-utils) ; for date/time-add-duration; avoids circular import
(declare-function ical:date/time-add-duration "icalendar-utils")
(or (ical:period--defined-end period)
;; compute end from duration and cache it:
(setf (cadr period)
(ical:date/time-add-duration
(ical:period-start period)
(ical:period-dur-value period)
vtimezone))))