From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: How to avoid time part in date comparisons?
Date: Thu, 12 Sep 2013 14:27:14 +0200 [thread overview]
Message-ID: <86ppseuswt.fsf@somewhere.org> (raw)
Hello,
Suppose you want to make a list of tasks you will have to do tomorrow.
The most logical expression would be "SCHEDULED = tomorrow":
--8<---------------cut here---------------start------------->8---
(add-to-list 'org-agenda-custom-commands
'("1" "Tomorrow"
tags-todo "SCHEDULED=\"<+1d>\""
((org-agenda-overriding-header "Tomorrow"))) t)
--8<---------------cut here---------------end--------------->8---
However, you'll "lose" timed tasks such as:
--8<---------------cut here---------------start------------->8---
** TODO Check weekend hours at the gym
DEADLINE: <2013-09-13 Fri 12:30>
--8<---------------cut here---------------end--------------->8---
Hence, you need to write a more complex expression, like:
--8<---------------cut here---------------start------------->8---
(add-to-list 'org-agenda-custom-commands
'("2" "Tomorrow"
tags-todo "SCHEDULED>=\"<+1d>\"+SCHEDULED<\"<+2d>\""
((org-agenda-overriding-header "Tomorrow (full)"))) t)
--8<---------------cut here---------------end--------------->8---
Is there a better way to write such a basic request?
Best regards,
Seb
--
Sebastien Vauban
next reply other threads:[~2013-09-12 12:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-12 12:27 Sebastien Vauban [this message]
2013-09-12 12:40 ` How to avoid time part in date comparisons? Sebastien Vauban
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=86ppseuswt.fsf@somewhere.org \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/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.