[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to avoid time part in date comparisons?
From: |
Sebastien Vauban |
Subject: |
Re: [O] How to avoid time part in date comparisons? |
Date: |
Thu, 12 Sep 2013 14:40:47 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (windows-nt) |
"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