I am trying to get org-mode
to insert a custom timestamp with the current time.
Something along these lines:
20160824 34|3 163000 (UTC)
Which I believe should be the following:
("%Y%m%d %W|%u %H%M%S (%Z)")
However, after editing org-time-stamp-custom-formats
using the Customize Browser
, I get the following:
Y0824 34|3 000000 (UTC
Issues:
- Year does not display.
- Current time is not displayed.
- End parenthesis does not display.
I have read through the org-mode
manual and searched online, but am still very lost.
(format-time-string "%Y%m%d %W|%u %H%M%S (%Z)")
I get "20160824 34|3 193407 (CEST)". What happens if you just execute that snippet? – Tephra Aug 24 '16 at 17:35org-time-stamp-custom-formats
essentially says do not change this because it will cause you problems in the future. Just use(insert ....)
and replace...
with the code by @Tephra above. The format oforg-time-stamp-custom-formats
is a cons cell with a CAR and a CDR, so that may be why you are having problems -- you need to specify one or the other --(car org-time-stamp-custom-formats)
or(cdr org-time-stamp-custom-formats)
-- however, you still shouldn't mess with those values. – lawlist Aug 24 '16 at 19:15