From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Leech-Pepin Subject: Re: Alternate format for datetree Date: Thu, 6 Sep 2012 12:08:22 -0400 Message-ID: References: <20532.1346040247@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9ed4-0003GF-GA for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 12:08:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9ecy-00049m-IB for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 12:08:30 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:38048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9ecy-00049X-CJ for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 12:08:24 -0400 Received: by pbbro12 with SMTP id ro12so3040602pbb.0 for ; Thu, 06 Sep 2012 09:08:23 -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: John Hendy Cc: c b <24x7x366@gmail.com>, emacs-orgmode , nicholas.dokos@hp.com Hello, On Thu, Sep 6, 2012 at 11:33 AM, John Hendy wrote: > On Thu, Sep 6, 2012 at 12:42 AM, c b <24x7x366@gmail.com> wrote: >> Hi John and Nick, >> [snip] >> >> * 09 >> ** 05 >> *** 2012 - Wednesday >> **** [2012-09-05 Wed 22:31] My first working month tree note >> **** [2012-09-05 Wed 22:35] My first working month tree note >> >> #2 The time always is reported as 22:31 (I guess that's the time I launched >> emacs). Is there a way for the time stamp to be corrected based on the >> current time? I generally leave emacs running for days together, so the time >> it's launched doesn't really work for me. > > Did you change the above to 21:35 or did it file like that? Not sure > why H:M wouldn't expand to the current date. One thing that just > occurred to me, however, is to replace that whole timestamp string > with "%%U% and Org will just expand it to a date+time stamp. > > Good luck, > John This is actually an issue with all of the backtick elements in the capture template but it shows up most obviously in the timestamp portion. I only realized this after providing the solution that John had referenced earlier in this thread. Backticks are expanded on evaluation and resolve to the specific value of their called portions. So for the headlines you will need to re-evaluate the template every day to update it (or restart emacs). For the timestamp itself you should be able to use the %U escape in the capture template and it will insert the date and time on it's own. Regards, -- Jon