From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: How to avoid time part in date comparisons? Date: Thu, 12 Sep 2013 14:40:47 +0200 Message-ID: <86li32usa8.fsf@somewhere.org> References: <86ppseuswt.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.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=\"\"" --8<---------------cut here---------------end--------------->8--- by --8<---------------cut here---------------start------------->8--- tags-todo "SCHEDULED<\"\"" --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