[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using header data in document
From: |
Eric S Fraga |
Subject: |
Re: using header data in document |
Date: |
Wed, 16 Sep 2020 16:34:59 +0100 |
On Wednesday, 16 Sep 2020 at 17:18, Emanuel Berg via "General discussions about
Org-mode." wrote:
> {{{date()}}} works as does {{{date(%D)}}} in a sense,
> only the format string doesn't seem to influence the
> output, which is "September 16, 2020".
The documentation that you have in your post says that this works only
if the actual date given in the #+DATE directive is a single
timestamp. So, what did you specify there? If you give a time stamp,
like [2020-09-16 Wed], it works fine for me. If you have something
else, e.g. September 16, 2020, the format string is ignored.
In any case, you may wish to use the {{{time(FORMAT)}}} macro instead as
this does not depend on the date you have specified explicitly. And, in
practice, I actually use {{{modification-time(FORMAT)}}}. In both of
these cases, you need to specify the format.
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-725-g7bc18e
- using header data in document, Emanuel Berg, 2020/09/15
- Re: using header data in document, Corwin Brust, 2020/09/15
- Re: using header data in document, Emanuel Berg, 2020/09/15
- Re: using header data in document, Eric S Fraga, 2020/09/16
- Re: using header data in document, Emanuel Berg, 2020/09/16
- Re: using header data in document,
Eric S Fraga <=
- Re: using header data in document, Emanuel Berg, 2020/09/16
- Re: using header data in document, Eric S Fraga, 2020/09/16
- Re: using header data in document, Emanuel Berg, 2020/09/16
- Re: using header data in document, Eric S Fraga, 2020/09/17