1

To get the current date and time, I can use (current-time).

But instead, I want to get the CLOSED timestamp of the current subtree and store it in a variable, so that I can pass it to format-time-string.

What's the simplest function to retrieve the CLOSED timestamp of a subtree?

1 Answer 1

1
;; in some hook or something:

(let ((timestamp (assoc "CLOSED" (org-entry-properties))))
  (when timestamp
    ;; couder is timestamp's value
    (princ (cdr timestamp))))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.