Function: calendar-date-compare
calendar-date-compare is a byte-compiled function defined in
calendar.el.gz.
Signature
(calendar-date-compare DATE1 DATE2)
Documentation
Return t if DATE1 is before DATE2, nil otherwise.
The actual dates are in the car of DATE1 and DATE2.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/calendar.el.gz
;; FIXME why the car? Almost every usage calls list on the args.
(defun calendar-date-compare (date1 date2)
"Return t if DATE1 is before DATE2, nil otherwise.
The actual dates are in the car of DATE1 and DATE2."
(< (calendar-absolute-from-gregorian (car date1))
(calendar-absolute-from-gregorian (car date2))))