From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Including current time in agenda Date: Mon, 6 Dec 2010 15:03:32 +0100 Message-ID: <66E55A24-B92C-4C28-BFDD-30D9A7F38515@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=36873 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPbfJ-0007Z4-Vq for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 09:03:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPbfI-0003rs-Kp for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 09:03:41 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:64313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPbfI-0003rg-BA for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 09:03:40 -0500 Received: by bwz16 with SMTP id 16so18106552bwz.0 for ; Mon, 06 Dec 2010 06:03:39 -0800 (PST) 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: Julien Danjou Cc: org-mode mailing list On Dec 6, 2010, at 2:38 PM, Julien Danjou wrote: > On Mon, Dec 06 2010, suvayu ali wrote: >> So far my attempts have been some variation of `<%%(format-time-=20 >> string >> "%H%M")>' or `<%%(diary-entry-time ...)>'. Am I approaching this the >> wrong way? Is this not supported by the diary library? >> >> Thanks for any thoughts/suggestions. > > (defun jd:org-current-time () > "Return current-time if date is today." > (when (equal date (calendar-current-date)) > (format-time-string "%H:%M Current time" (current-time)))) > > And use %%(jd:org-current-time) in an entry. Wow, I overlooked this possibility. Great. - Carsten > > I think this is what you want? > > --=20 > Julien Danjou > // =E1=90=B0 http://julien.danjou.info > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten