discovered the org-2ft function which seems to be more reliable in

handling org timestamps
This commit is contained in:
ndwarshuis 2018-11-23 00:00:05 -05:00
parent 12ff47da89
commit 2e9d1e9778
1 changed files with 2 additions and 2 deletions

View File

@ -1404,8 +1404,8 @@ These are the building blocks for skip functions.
(defun nd/get-date-property (timestamp-property)
"Get TIMESTAMP-PROPERTY on current heading and convert to a number.
If it does not have a date, it will return nil."
(let ((timestamp (org-entry-get nil timestamp-property)))
(if timestamp (float-time (date-to-time timestamp)))))
(let ((ts (org-entry-get nil timestamp-property)))
(when ts (org-2ft ts))))
(defun nd/heading-compare-timestamp (timestamp-fun
&optional ref-time future)