From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Pechiar Subject: Re: How do I insert just a time stamp in a capture template? Date: Thu, 9 Dec 2010 18:32:50 -0200 Message-ID: <20101209203250.GM2450@soloJazz.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=49065 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQnB0-0002Pg-GN for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 15:33:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQnAh-0004q6-5S for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 15:33:18 -0500 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:53692) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PQnAg-0004oU-St for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 15:32:59 -0500 Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Charles Cave Cc: emacs-orgmode@gnu.org %(sexp) allows to include lisp expressions in a capture template. %(format-time-string "%H:%M") should insert the current time. Regards, .j. On Wed, Dec 08, 2010 at 10:08:32PM +0000, Charles Cave wrote: > I use the following template > > ("l" "Log Time" > entry (file+datetree "c:/charles/My Dropbox/GTD/timelog.org") > "** %U - %^{Activity} :TIME:") > ) > > A typical entry from this template looks like: > > * 2010 > ** 2010-12-December > *** 2010-12-09 Thursday > **** [2010-12-09 Thu 08:10] - Arrived at the office :TIME: > > I would like to just have the time in the headline not the complete date time > stamp. > > I couldn't find a % extension in the documenation > (9.1.3.2 Template expansion)