Function: org-timestamp-to-now
org-timestamp-to-now is a byte-compiled function defined in org.el.gz.
Signature
(org-timestamp-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)
org-time-stamp-to-now
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-timestamp-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))))