all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: How to avoid time part in date comparisons?
Date: Thu, 12 Sep 2013 14:40:47 +0200	[thread overview]
Message-ID: <86li32usa8.fsf@somewhere.org> (raw)
In-Reply-To: 86ppseuswt.fsf@somewhere.org

"Sebastien Vauban" wrote:
> Suppose you want to make a list of tasks you will have to do tomorrow.
>
>     (add-to-list 'org-agenda-custom-commands
>                  '("1" "Tomorrow"
>                    tags-todo "SCHEDULED=\"<+1d>\""
>                    ((org-agenda-overriding-header "Tomorrow"))) t)
>
> However, you'll "lose" timed tasks. Hence, you need to write a more complex
> expression, like:
>
>     (add-to-list 'org-agenda-custom-commands
>                  '("2" "Tomorrow"
>                    tags-todo "SCHEDULED>=\"<+1d>\"+SCHEDULED<\"<+2d>\""
>                    ((org-agenda-overriding-header "Tomorrow (full)"))) t)
>
> Is there a better way to write such a basic request?

BTW, it's the same for "Today", for which we *must* replace the intuitive
expression

--8<---------------cut here---------------start------------->8---
                     tags-todo "SCHEDULED=\"<today>\""
--8<---------------cut here---------------end--------------->8---

by

--8<---------------cut here---------------start------------->8---
                     tags-todo "SCHEDULED<\"<tomorrow>\""
--8<---------------cut here---------------end--------------->8---

if we want to see all today's tasks (including the ones with a "time"
component)...

Best regards,
  Seb

-- 
Sebastien Vauban

      reply	other threads:[~2013-09-12 12:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-12 12:27 How to avoid time part in date comparisons? Sebastien Vauban
2013-09-12 12:40 ` Sebastien Vauban [this message]

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=86li32usa8.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.