Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-11 Thread Nicolas Goaziou
Thomas S. Dye writes: > Aloha Nicolas, > > The attached patch is based on current maint branch. Applied. Thank you. Regards,

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-11 Thread Thomas S . Dye
Aloha Nicolas, The attached patch is based on current maint branch. Let me know if you have questions. All the best, Tom >From e5ab2427af7095db8c7f080dc8f9457021a10544 Mon Sep 17 00:00:00 2001 From: tsdye Date: Tue, 11 Aug 2015 08:34:50 -1000 Subject: [PATCH] Edit date and time macros --- do

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-07 Thread Kaushal
Aha.. I am using a custom postamble for html: (setq org-html-postamble t) ; default value = 'auto (setq org-html-postamble-format `(("en" ,(concat "Exported using " ;; "%c" is replaced with `org-html-creat

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-07 Thread Suvayu Ali
On Fri, Aug 07, 2015 at 10:01:42AM -0400, Kaushal wrote: > @Fabrice Thanks for sharing your examples! > > @Suvayu I tried removing #+DATE: line.. but with that I don't see the date > stamp in html exports. The advantage of {{{time(FORMAT)}}} is that I can > also control the formatting of the date-

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-07 Thread Kaushal
@Fabrice Thanks for sharing your examples! @Suvayu I tried removing #+DATE: line.. but with that I don't see the date stamp in html exports. The advantage of {{{time(FORMAT)}}} is that I can also control the formatting of the date-time stamp. -- Kaushal Modi On Fri, Aug 7, 2015 at 4:53 AM, Nico

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-07 Thread Nicolas Goaziou
Hello, Thomas S. Dye writes: > A second patch is attached. Thank you. > From cb30697627afacc8950ef85b839f47d48371f39b Mon Sep 17 00:00:00 2001 > From: tsdye > Date: Thu, 6 Aug 2015 12:08:34 -1000 > Subject: [PATCH 2/2] More date and time macro edits I think the commit message is confusing ("

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-06 Thread Thomas S . Dye
Thanks Fabrice, very helpful. A second patch is attached. All the best, Tom Fabrice Niessen writes: >> Doesn't it get its information from a timestamp in #+DATE? >> >>> I think you missed out explaining what {{{time(FORMAT)}}} does. > > You might be interested by `date', `time' and `modificati

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-06 Thread Fabrice Niessen
> Doesn't it get its information from a timestamp in #+DATE? > >> I think you missed out explaining what {{{time(FORMAT)}}} does. You might be interested by `date', `time' and `modification-time', depending on what you want to achieve. I've put some examples in my Org-macros project about those:

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-06 Thread Thomas S . Dye
Doesn't it get its information from a timestamp in #+DATE? Kaushal writes: > I think you missed out explaining what {{{time(FORMAT)}}} does. -- Thomas S. Dye http://www.tsdye.com

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-06 Thread Kaushal
I think you missed out explaining what {{{time(FORMAT)}}} does. -- Kaushal Modi On Thu, Aug 6, 2015 at 4:51 PM, Thomas S. Dye wrote: > OK, here is a patch that tries to do that. > > All the best, > Tom > > Kaushal writes: > > > Yeah, the documentation definitely needs refining. > > > > {{{dat

[O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-06 Thread Thomas S . Dye
OK, here is a patch that tries to do that. All the best, Tom Kaushal writes: > 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` functio