From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Including current time in agenda Date: Mon, 06 Dec 2010 10:39:02 -0500 Message-ID: <87mxoi52sp.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=47292 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPd9d-0003eU-Ja for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 10:39:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPd9c-0000rT-5F for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 10:39:05 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:56667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPd9b-0000rE-VY for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 10:39:04 -0500 In-Reply-To: (Julien Danjou's message of "Mon, 06 Dec 2010 14:38:56 +0100") 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: suvayu ali Cc: org-mode mailing list Julien Danjou writes: > On Mon, Dec 06 2010, suvayu ali wrote: >> So far my attempts have been some variation of `<%%(format-time-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. > This is great! I've been grateful for all the creative uses people have found for diary expressions recently (weather, current time, etc.). Best, Matt