Julien Danjou <jul...@danjou.info> 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 _______________________________________________ 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