Function: org-date-to-gregorian

org-date-to-gregorian is a byte-compiled function defined in org.el.gz.

Signature

(org-date-to-gregorian D)

Documentation

Turn any specification of date D into a Gregorian date for the calendar.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-date-to-gregorian (d)
  "Turn any specification of date D into a Gregorian date for the calendar."
  (cond ((integerp d) (calendar-gregorian-from-absolute d))
	((and (listp d) (= (length d) 3)) d)
	((stringp d)
	 (let ((d (org-parse-time-string d)))
	   (list (nth 4 d) (nth 3 d) (nth 5 d))))
	((listp d) (list (nth 4 d) (nth 3 d) (nth 5 d)))))