emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Juan Pechiar <juan@pechiar.com>
To: Charles Cave <charles.cave@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How do I insert just a time stamp in a capture template?
Date: Thu, 9 Dec 2010 18:32:50 -0200	[thread overview]
Message-ID: <20101209203250.GM2450@soloJazz.com> (raw)
In-Reply-To: <loom.20101208T230244-676@post.gmane.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)

  reply	other threads:[~2010-12-09 20:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08 22:08 How do I insert just a time stamp in a capture template? Charles Cave
2010-12-09 20:32 ` Juan Pechiar [this message]
2010-12-09 22:14 ` Charles Cave

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101209203250.GM2450@soloJazz.com \
    --to=juan@pechiar.com \
    --cc=charles.cave@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).