From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mikael Fornius Subject: Re: Daily Habit in time range 23:00 04:00 Date: Thu, 10 Jun 2010 13:43:26 +0200 Message-ID: <87typbnme9.fsf@eee.lan> References: <86iq5t8861.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=54085 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMgB2-0006Yj-AP for emacs-orgmode@gnu.org; Thu, 10 Jun 2010 07:44:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMgB1-0006v7-7W for emacs-orgmode@gnu.org; Thu, 10 Jun 2010 07:44:04 -0400 Received: from violet.abc.se ([62.80.200.155]:37595) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMgB0-0006nc-Ti for emacs-orgmode@gnu.org; Thu, 10 Jun 2010 07:44:03 -0400 In-Reply-To: <86iq5t8861.fsf@gmail.com> (Alessandro Piras's message of "Tue, 08 Jun 2010 23:35:18 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alessandro Piras Cc: emacs-orgmode@gnu.org Alessandro Piras writes: > How can I express a daily habit TODO item that I can fulfill from 11:00PM to > 04:00AM? It is not possible AFAIK, org-habit is only working with whole day intervals. No easy solution comes to my mind. It would be very complex to apply hourly intervals to org-habit I think. Maybe you can try to use the variable `org-extend-today-until' and possibly make your day end at 04:00? Then a daily habit will do the job. * TODO Dayly habit SCHEDULED: <2009-12-15 Tue .+1d> :PROPERTIES: :STYLE: habit :END: I have not tried it myself but the source code of org-habit uses the variable once at least. And it might have other side effects. The end of the doc-string is also very funny :) Please reply if and how you make it work! Cheers! --8<---------------cut here---------------start------------->8--- org-extend-today-until is a variable defined in `org.el'. Its value is 0 Documentation: The hour when your day really ends. Must be an integer. This has influence for the following applications: - When switching the agenda to "today". It it is still earlier than the time given here, the day recognized as TODAY is actually yesterday. - When a date is read from the user and it is still before the time given here, the current date and time will be assumed to be yesterday, 23:59. Also, timestamps inserted in remember templates follow this rule. IMPORTANT: This is a feature whose implementation is and likely will remain incomplete. Really, it is only here because past midnight seems to be the favorite working time of John Wiegley :-) --8<---------------cut here---------------end--------------->8--- -- Mikael Fornius