In a Lisp function, how do I instruct org to automatically insert a timestamp with today's date?
I found the function
org-insert-time-stamp, but I don't know how to provide an argument for it that will return today's date.
The documentation for the function says:
(org-insert-time-stamp TIME &optional WITH-HM INACTIVE PRE POST EXTRA)
...but I don't see where to find documentation about what
TIME &optional WITH-HM INACTIVE PRE POST EXTRA means or how to specify these in a function.
And here's the function I'm trying to write:
(defun org-today-heading-and-clock-in () "Insert a new heading with today's date, and then clock in." (interactive) (org-insert-subheading) (org-insert-time-stamp (today)) (org-clock-in))