0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-22 09:10:43 +00:00

org.el: Use org-float-time' instead f the obsolete time-to-seconds' function

* org.el (org-time-stamp-to-now): Use `org-float-time' instead
of the obsolete `time-to-seconds' function.
This commit is contained in:
Bastien Guerry 2012-10-02 15:19:35 +02:00
parent 410c5cb9e4
commit a9c5399983

View file

@ -15914,7 +15914,7 @@ Don't touch the rest."
(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 'time-to-seconds 'time-to-days)))
(let ((fdiff (if seconds 'org-float-time 'time-to-days)))
(- (funcall fdiff (org-time-string-to-time timestamp-string))
(funcall fdiff (current-time)))))