Function: icalendar--datetime-to-iso-date
icalendar--datetime-to-iso-date is a byte-compiled function defined in
icalendar.el.gz.
Signature
(icalendar--datetime-to-iso-date DATETIME &optional SEPARATOR)
Documentation
Convert the decoded DATETIME to ISO format.
Optional argument SEPARATOR gives the separator between month, day, and year. If nil a blank character is used as separator. ISO format: (year month day).
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar.el.gz
(defun icalendar--datetime-to-iso-date (datetime &optional separator)
"Convert the decoded DATETIME to ISO format.
Optional argument SEPARATOR gives the separator between month,
day, and year. If nil a blank character is used as separator.
ISO format: (year month day)."
(if datetime
(format "%d%s%d%s%d" (nth 5 datetime) ;year
(or separator " ")
(nth 4 datetime) ;month
(or separator " ")
(nth 3 datetime)) ;day
;; datetime == nil
nil))