On Sun, Jan 31, 2010 at 11:57:59PM -0000, Luca Invernizzi wrote:
> I was thinking about one little thing.
> It would be nice to be able to set a task recurring X days after it has been marked as done, instead of every X day.
>
> For istance: "do laundry" is due every week, but this timespan has to be
> calculated from the last time I did laundry.
I was looking at RTM and noticed they also model both of these kinds of
recurrence, via the word 'every' vs 'after':
"Take out the trash every Sunday evening"
"Do the laundry again after one week"
In the first case, for cyclical tasks the recurrence could be based on
the start_date. So:
On Sun, Jan 31, 2010 at 11:57:59PM -0000, Luca Invernizzi wrote:
> I was thinking about one little thing.
> It would be nice to be able to set a task recurring X days after it has been marked as done, instead of every X day.
>
> For istance: "do laundry" is due every week, but this timespan has to be
> calculated from the last time I did laundry.
I was looking at RTM and noticed they also model both of these kinds of
recurrence, via the word 'every' vs 'after':
"Take out the trash every Sunday evening"
"Do the laundry again after one week"
In the first case, for cyclical tasks the recurrence could be based on
the start_date. So:
new_task. start_date = old_task.start_date + recurrence_time
In the second case, for period tasks this would be based off the done
date, just like Luca mentioned:
new_task. start_date = old_task.done_date + recurrence_time