emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
To: Rick Frankel <rick@rickster.com>
Cc: Alan Schmitt <alan.schmitt@polytechnique.org>, emacs-orgmode@gnu.org
Subject: Re: org-html-postamble-format and #+DATE: specification in 8.0pre
Date: Sun, 07 Apr 2013 18:48:23 +0200	[thread overview]
Message-ID: <87ip3yxp60.fsf@duenenhof-wilhelm.de> (raw)
In-Reply-To: <ac3aa6520ce0fc15d2c30c98c6c19153@mail.rickster.com> (Rick Frankel's message of "Fri, 05 Apr 2013 09:47:24 -0400")

Rick Frankel <rick@rickster.com> writes:

> On 04.04.2013 17:36, Dieter Wilhelm wrote:
>> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>>> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>>>
>>>> Dieter Wilhelm writes:
>>>>
>>>> but now I can't specify a date in the form
>>>>>
>>>>> #+DATE:  "%Y-%m-%d"
>>>>>
>>>>> Formerly an empty specification meant the current date, but now
>>>>> in the
>>>>> preamble the date remains empty.
>>>>
>>>> I'm having the same issue. Did you find a way around it?
>>>
>>> I didn't try to reproduce the problem, but specifying a format time
>>> string as a DATE value is not possible anymore. You still can
>>> provide
>>> a timestamp and tweak `org-export-date-timestamp-format' (or BIND
>>> it) to
>>> format it.
>>
>> Sorry I don't get it completely.
>> I'd like to have as the DATE value the current change time of the
>> file.
>> You mean that I should set this with the Emacs timestamp facility?
>> Like:
>>
>> #+DATE: Time-stamp: " "
>
> No, but you can use the modification-time() macro:

Thank you very much, practically to the same time Nicolas G. pointed
this out as well and I had some issues with the html-preamble, so I
didn't reply.  But as an aside: Is there a place in worg, in the
documentation, a lisp file where these wonderful macros are to be found?

--
     Dieter


> ,----
> | #+TITLE: Test date handling
> | #+DATE: {{{modification-time(%Y-%m-%d)}}}
> | #+OPTIONS: toc:nil
> |
> | * File was updated on {{{modification-time(%Y-%m-%dT%H:%M)}}}
> | - the header date is: {{{date()}}}
> | - the current time is {{{time(%Y-%m-%dT%H:%M)}}}
> `----
>
> Which will export (in ascii):
>
> ,----
> |                           ____________________
> |
> |                            TEST DATE HANDLING
> |
> |                               Rick Frankel
> |                           ____________________
> |
> |
> |                                2013-04-05
> |
> |
> |
> |
> |
> | File was updated on 2013-04-05T09:41
> | ====================================
> |
> |   - the header date is: 2013-04-05
> |   - the current time is 2013-04-05T09:46
> `----
>

-- 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany

  reply	other threads:[~2013-04-07 16:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-29 14:11 org-html-postamble-format and #+DATE: specification in 8.0pre Dieter Wilhelm
2013-04-03 13:04 ` Alan Schmitt
2013-04-03 19:21   ` Nicolas Goaziou
2013-04-04 21:36     ` Dieter Wilhelm
2013-04-05 13:47       ` Rick Frankel
2013-04-07 16:48         ` Dieter Wilhelm [this message]
2013-04-07 18:50           ` Nicolas Goaziou
2013-04-07 21:56             ` Dieter Wilhelm
2013-04-05 18:43       ` Nicolas Goaziou
2013-04-06 11:20         ` Dieter Wilhelm
2013-04-06 12:19           ` Nicolas Goaziou
2013-04-06 13:31             ` Maurice
2013-04-05  7:17     ` Alan Schmitt
2013-04-05 13:22       ` Rick Frankel
2013-04-05 18:52       ` Nicolas Goaziou
2013-04-06 15:05         ` Alan Schmitt
2013-04-06 17:02           ` Nicolas Goaziou
2013-04-06 17:28             ` Alan Schmitt
2013-04-06 18:02               ` Nicolas Goaziou
2013-04-07 21:01                 ` Alan Schmitt
2013-04-07 21:04                   ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ip3yxp60.fsf@duenenhof-wilhelm.de \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=rick@rickster.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).