Function: org-time-stamp-to-now

org-time-stamp-to-now is a byte-compiled function defined in org.el.gz.

Signature

(org-time-stamp-to-now TIMESTAMP-STRING &optional SECONDS)

Documentation

Difference between TIMESTAMP-STRING and now in days.

If SECONDS is non-nil, return the difference in seconds.

Aliases

org-days-to-time (obsolete since 8.2)

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-time-stamp-to-now (timestamp-string &optional seconds)
  "Difference between TIMESTAMP-STRING and now in days.
If SECONDS is non-nil, return the difference in seconds."
  (let ((fdiff (if seconds #'float-time #'time-to-days)))
    (- (funcall fdiff (org-time-string-to-time timestamp-string))
       (funcall fdiff nil))))