Function: org-check-before-date
org-check-before-date is an interactive and byte-compiled function
defined in org.el.gz.
Signature
(org-check-before-date D)
Documentation
Check if there are deadlines or scheduled entries before date D.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-check-before-date (d)
"Check if there are deadlines or scheduled entries before date D."
(interactive (list (org-read-date)))
(let* ((case-fold-search nil)
(regexp (org-re-timestamp org-ts-type))
(ts-type org-ts-type)
(callback
(lambda ()
(let ((match (match-string 1)))
(and (if (memq ts-type '(active inactive all))
(org-element-type-p
(save-excursion
(backward-char)
(org-element-context))
'timestamp)
(org-at-planning-p))
(time-less-p
(org-time-string-to-time match)
(org-time-string-to-time d)))))))
(message "%d entries before %s"
(org-occur regexp nil callback)
d)))