emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-html-postamble-format and #+DATE: specification in 8.0pre


From: Rick Frankel
Subject: Re: [O] org-html-postamble-format and #+DATE: specification in 8.0pre
Date: Fri, 05 Apr 2013 09:47:24 -0400
User-agent: Roundcube Webmail/0.7.1

On 04.04.2013 17:36, Dieter Wilhelm wrote:
Nicolas Goaziou <address@hidden> writes:
Alan Schmitt <address@hidden> 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:

,----
| #+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
`----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]