From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Danjou Subject: Re: Including current time in agenda Date: Mon, 06 Dec 2010 14:38:56 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2040690055==" Return-path: Received: from [140.186.70.92] (port=33108 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPbHQ-0006pT-Tp for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 08:39:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPbHO-00063y-IT for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 08:39:00 -0500 Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:33819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPbHO-00063W-CK for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 08:38:58 -0500 In-Reply-To: (suvayu ali's message of "Mon, 6 Dec 2010 07:49:32 +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 --===============2040690055== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. I think this is what you want? =2D-=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkz853AACgkQpGK1HsL+5c2ZTACeL6lgTnBfLJHDV/gTiNw3rDnL oFwAn16je/whu609VFxJoglJ/yhhy9vo =tawN -----END PGP SIGNATURE----- --=-=-=-- --===============2040690055== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============2040690055==--