Function: org-cmp-time

org-cmp-time is a byte-compiled function defined in org-agenda.el.gz.

Signature

(org-cmp-time A B)

Documentation

Compare the time-of-day values of strings A and B.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defsubst org-cmp-time (a b)
  "Compare the time-of-day values of strings A and B."
  (let* ((def (if org-agenda-sort-notime-is-late 9901 -1))
	 (ta (or (get-text-property 1 'time-of-day a) def))
	 (tb (or (get-text-property 1 'time-of-day b) def)))
    (cond ((< ta tb) -1)
	  ((< tb ta) +1))))