Function: org-deadline-close-p

org-deadline-close-p is a byte-compiled function defined in org.el.gz.

Signature

(org-deadline-close-p TIMESTAMP-STRING &optional NDAYS)

Documentation

Is the time in TIMESTAMP-STRING close to the current date?

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-deadline-close-p (timestamp-string &optional ndays)
  "Is the time in TIMESTAMP-STRING close to the current date?"
  (setq ndays (or ndays (org-get-wdays timestamp-string)))
  (and (<= (org-timestamp-to-now timestamp-string) ndays)
       (not (org-entry-is-done-p))))