discovered the org-2ft function which seems to be more reliable in
handling org timestamps
This commit is contained in:
parent
12ff47da89
commit
2e9d1e9778
4
conf.org
4
conf.org
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue