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

2015-08-06 Thread Suvayu Ali
On Thu, Aug 06, 2015 at 01:00:31PM -0400, Kaushal wrote: > > Why don't you just use a timestamp? > > But that would need me to insert the timestamp manually each time before > exports > > > You can update whenever you want or using > >(org-insert-time-stamp (current-time)) > > at the right sp

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

2015-08-06 Thread Rasmus
Kaushal writes: >> Why don't you just use a timestamp? > > But that would need me to insert the timestamp manually each time before > exports If you *always* want the current date you don't need to set date. >> You can update whenever you want or using >>(org-insert-time-stamp (current-time

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

2015-08-06 Thread Kaushal
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 {{{mod

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

2015-08-06 Thread Thomas S . Dye
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

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

2015-08-06 Thread Kaushal
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, respect

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

2015-08-06 Thread Kaushal
@Nick That works! Thank you! I used the below instead (learned that I needed to escape that comma). #+DATE: {{{time(%b %d %Y\, %a)}}} I had read about {{{date}}} but assumed that {{{time}}} does the same thing as {{{date}}} because they are put together with the same description. The documentati

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

2015-08-06 Thread John Kitchin
I use a function like that here: https://github.com/jkitchin/jmax/blob/master/techela/techela-grade.el#L182 and to set the filetag as you suggest you would call it like this: #+BEGIN_SRC emacs-lisp (gb-set-filetag "DATE" (format-time-string "%b %d %Y, %a" (current-time))) #+END_SRC You could put

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

2015-08-06 Thread Nick Dokos
Kaushal writes: > Hi all, > > There are quite few documents in which I want to update the date stamp to the > last update time. > > I like that #+DATE keyword value is used aptly in latex/pdf and html exports. > > But I couldn't find an elegant way for that date to be updated to today's > (last

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

2015-08-06 Thread Kaushal
> Why don't you just use a timestamp? But that would need me to insert the timestamp manually each time before exports > You can update whenever you want or using >(org-insert-time-stamp (current-time)) > at the right spot. Wouldn't that too need manual navigation to #+date: and then eval th

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

2015-08-06 Thread Rasmus
Kaushal writes: > Hi all, > > There are quite few documents in which I want to update the date stamp to > the last update time. > > I like that #+DATE keyword value is used aptly in latex/pdf and html > exports. > > But I couldn't find an elegant way for that date to be updated to today's > (last

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

2015-08-06 Thread Kaushal
Hi all, There are quite few documents in which I want to update the date stamp to the last update time. I like that #+DATE keyword value is used aptly in latex/pdf and html exports. But I couldn't find an elegant way for that date to be updated to today's (last updated) date. I came up with the