From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dieter Wilhelm Subject: Re: org-html-postamble-format and #+DATE: specification in 8.0pre Date: Sun, 07 Apr 2013 18:48:23 +0200 Message-ID: <87ip3yxp60.fsf@duenenhof-wilhelm.de> References: <87y5d6z46f.fsf@duenenhof-wilhelm.de> <87hajnzagn.fsf@gmail.com> <87zjxem10m.fsf@duenenhof-wilhelm.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOslw-00013z-G2 for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 12:48:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOsln-0007zx-L0 for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 12:48:51 -0400 Received: from mail-ea0-x230.google.com ([2a00:1450:4013:c01::230]:48169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOsln-0007zn-ER for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 12:48:43 -0400 Received: by mail-ea0-f176.google.com with SMTP id h10so1900142eaj.7 for ; Sun, 07 Apr 2013 09:48:42 -0700 (PDT) In-Reply-To: (Rick Frankel's message of "Fri, 05 Apr 2013 09:47:24 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rick Frankel Cc: Alan Schmitt , emacs-orgmode@gnu.org Rick Frankel writes: > On 04.04.2013 17:36, Dieter Wilhelm wrote: >> Nicolas Goaziou writes: >>> Alan Schmitt 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