Function: icalendar--datetime-to-iso-date
icalendar--datetime-to-iso-date is a byte-compiled function defined in
icalendar.el.gz.
This function is obsolete since 31.1; use
icalendar-date/time-to-date and diary-icalendar-format-date
instead.
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)."
(declare (obsolete "use `icalendar-date/time-to-date' and `diary-icalendar-format-date' instead." "31.1"))
(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))