From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Subject: Re: What is the best way to set #+DATE to today's date? Date: Thu, 6 Aug 2015 15:58:44 -0400 Message-ID: References: <87bnekmknk.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2e6aeb87aa9051ca9f4d1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNRK2-0000xS-BB for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 15:59:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNRK1-0007Qi-4A for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 15:59:26 -0400 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:35349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNRK0-0007Qb-UY for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 15:59:25 -0400 Received: by obbop1 with SMTP id op1so64113101obb.2 for ; Thu, 06 Aug 2015 12:59:24 -0700 (PDT) In-Reply-To: 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: "Thomas S. Dye" Cc: ndokos@gmail.com, emacs-org list , Rasmus , John Kitchin --001a11c2e6aeb87aa9051ca9f4d1 Content-Type: text/plain; charset=UTF-8 Yeah, the documentation definitely needs refining. {{{date}}} / {{{date(FORMAT)}}} [FORMAT is optional] - Inserts the #+DATE keyword value; optionally formats as per FORMAT (Refer `format-time-string` function for syntax.){{{time(FORMAT)}}} - Inserts the current time stamp as per the FORMAT {{{modification-time(FORMAT)}}} - Inserts modification time of the file being exported as per the FORMAT -- Kaushal Modi On Thu, Aug 6, 2015 at 3:50 PM, Thomas S. Dye wrote: > > Kaushal writes: > > > Actually the documentation does say what {{{time}}} does; I just didn't > > read it all this time. > > > > {{{date}}}{{{date(FORMAT)}}}{{{time(FORMAT)}}}{{{modification-time(FORMAT > > )}}} > > "These macros refer to the #+DATE keyword, *the current date*, and the > > modification time of the file being exported, respectively." > > > > Apologies. > > Does it? I count four macros and three references. It's not clear to > me how they map to one another. How should I read this? > > All the best, > Tom > > -- > Thomas S. Dye > http://www.tsdye.com > --001a11c2e6aeb87aa9051ca9f4d1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yeah, the documentation definitely needs r= efining.

{{{date}}} /=C2=A0{{{date(FORMAT)}}} [FORMAT is optional] -= Inserts the=C2=A0#+DATE= =C2=A0keyword=C2=A0value; optionally f= ormats as per FORMAT (Refer `format-time-string` function for syntax.)
{= {{time(FORMAT)}}} - Inserts the current time stamp = as per the FORMAT=C2=A0
{{{modification-time(FORMAT)}}} - Inserts=C2=A0modifica= tion time of the file being exported as per the FORMAT


--Kaushal Modi

On Thu, Aug 6, 2015 at 3:50 PM, Thomas S. Dy= e <= tsd@tsdye.com> wrote:

Kaushal <kaushal.modi@gmail.co= m> writes:

> Actually the documentation does say what {{{time}}} does; I just didn&= #39;t
> read it all this time.
>
> {{{date}}}{{{date(FORMAT)}}}{{{time(FORMAT)}}}{{{modification-time(FOR= MAT
> )}}}
> "These macros refer to the #+DATE keyword, *the current da= te*, and the
> modification time of the file being exported, respect= ively."
>
> Apologies.

Does it?=C2=A0 I count four macros and three references.=C2=A0 It= 9;s not clear to
me how they map to one another.=C2=A0 How should I read this?

All the best,
Tom

--
Thomas S. Dye
http:= //www.tsdye.com

--001a11c2e6aeb87aa9051ca9f4d1--