Function: icalendar--date-to-isodate
icalendar--date-to-isodate is a byte-compiled function defined in
icalendar.el.gz.
Signature
(icalendar--date-to-isodate DATE &optional DAY-SHIFT)
Documentation
Convert DATE to iso-style date.
DATE must be a list of the form (month day year). If DAY-SHIFT is non-nil, the result is shifted by DAY-SHIFT days.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar.el.gz
(defun icalendar--date-to-isodate (date &optional day-shift)
"Convert DATE to iso-style date.
DATE must be a list of the form (month day year).
If DAY-SHIFT is non-nil, the result is shifted by DAY-SHIFT days."
(let ((mdy (calendar-gregorian-from-absolute
(+ (calendar-absolute-from-gregorian date)
(or day-shift 0)))))
(format "%04d%02d%02d" (nth 2 mdy) (nth 0 mdy) (nth 1 mdy))))