There was a built in (org-time-string-to-time) that does what
org-date-time-to-internal-time does.
This commit is contained in:
parent
efa53182f8
commit
2f028fb911
5
init.el
5
init.el
@ -655,11 +655,6 @@ The current directory is assumed to be the project's root otherwise."
|
|||||||
(org-insert-todo-heading nil)
|
(org-insert-todo-heading nil)
|
||||||
(org-make-habit))
|
(org-make-habit))
|
||||||
|
|
||||||
(defun org-date-time-to-internal-time (org-date)
|
|
||||||
`(,@(apply 'encode-time
|
|
||||||
(mapcar (lambda (elem) (if elem elem 0))
|
|
||||||
(subseq (parse-time-string org-date) 0 6))) 0 0))
|
|
||||||
|
|
||||||
(defun org-todo-at-date (date)
|
(defun org-todo-at-date (date)
|
||||||
(interactive (list (org-time-string-to-time (org-read-date))))
|
(interactive (list (org-time-string-to-time (org-read-date))))
|
||||||
(flet ((org-current-effective-time (&rest r) date))
|
(flet ((org-current-effective-time (&rest r) date))
|
||||||
|
Loading…
Reference in New Issue
Block a user