From: Mikael Fornius <mfo@abc.se>
To: Alessandro Piras <laynor@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Daily Habit in time range 23:00 04:00
Date: Thu, 10 Jun 2010 13:43:26 +0200 [thread overview]
Message-ID: <87typbnme9.fsf@eee.lan> (raw)
In-Reply-To: <86iq5t8861.fsf@gmail.com> (Alessandro Piras's message of "Tue, 08 Jun 2010 23:35:18 +0100")
Alessandro Piras <laynor@gmail.com> 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
prev parent reply other threads:[~2010-06-10 11:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 22:35 Daily Habit in time range 23:00 04:00 Alessandro Piras
2010-06-10 11:43 ` Mikael Fornius [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=87typbnme9.fsf@eee.lan \
--to=mfo@abc.se \
--cc=emacs-orgmode@gnu.org \
--cc=laynor@gmail.com \
/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.