From: Julien Danjou <julien@danjou.info>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Including current time in agenda
Date: Mon, 06 Dec 2010 14:38:56 +0100 [thread overview]
Message-ID: <sa3hberowb3.fsf@cigue.easter-eggs.fr> (raw)
In-Reply-To: <AANLkTinW9Mjodq3Vqr6DdHSXeKHNkyZ+hYgpG=P4GHG=@mail.gmail.com> (suvayu ali's message of "Mon, 6 Dec 2010 07:49:32 +0100")
[-- Attachment #1.1: Type: text/plain, Size: 635 bytes --]
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?
--
Julien Danjou
// ᐰ <julien@danjou.info> http://julien.danjou.info
[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
next prev parent reply other threads:[~2010-12-06 13:39 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-06 6:49 Including current time in agenda suvayu ali
2010-12-06 11:47 ` Eric S Fraga
2010-12-06 11:55 ` suvayu ali
2010-12-06 12:08 ` Eric S Fraga
2010-12-06 12:27 ` suvayu ali
2010-12-06 13:00 ` Carsten Dominik
2010-12-06 13:10 ` suvayu ali
2010-12-06 13:38 ` Julien Danjou [this message]
2010-12-06 14:03 ` Carsten Dominik
2010-12-06 14:30 ` Suvayu Ali
2010-12-06 14:45 ` Carsten Dominik
2010-12-06 14:53 ` Suvayu Ali
2010-12-06 14:56 ` Carsten Dominik
2010-12-06 14:59 ` Rémi Vanicat
2010-12-06 15:10 ` suvayu ali
2010-12-06 15:13 ` Julien Danjou
2010-12-06 15:28 ` Suvayu Ali
2010-12-06 15:39 ` Matt Lundin
2010-12-12 8:30 ` Carsten Dominik
2010-12-12 17:54 ` Eric S Fraga
2010-12-12 21:31 ` Matt Lundin
2011-01-07 19:31 ` Erik Butz
2011-01-07 23:27 ` suvayu ali
2011-01-07 23:46 ` Erik Butz
2011-01-08 0:04 ` suvayu ali
2011-01-08 14:46 ` Erik Butz
2010-12-12 18:19 ` suvayu ali
2010-12-06 19:27 ` Eric S Fraga
2010-12-06 22:34 ` suvayu ali
2010-12-08 23:46 ` [PATCH] sexp can set its face (was: Including current time in agenda) Łukasz Stelmach
2010-12-12 7:44 ` Carsten Dominik
2010-12-13 0:14 ` suvayu ali
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sa3hberowb3.fsf@cigue.easter-eggs.fr \
--to=julien@danjou.info \
--cc=emacs-orgmode@gnu.org \
--cc=fatkasuvayu+linux@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.