[Ml-yokadi] Quaterly recurrence patch
Aurélien Gâteau
aurelien.gateau at free.fr
Wed Jul 22 14:38:47 CEST 2009
Sébastien Renard wrote:
> Le mardi 21 juillet 2009 11:24:47, Jonas Christian Drewsen a écrit :
>> I think quaterly is a pretty common term for "every three months".
>>
>> E.g. Dictionary.com : "a periodical issued every three months.".
>>
>> I myself need it for "quaterly report" tasks :)
>
> Sure, but that's not what your patch seems to do. It shedule a task for
> Janury, April, July and October whatever the current month is. So, as we are
> in July everything is fine but if you define a quarterly task in august, the
> next occurrence will be in october, not november as it could be expected.
>
> Both two behaviour are correct, but I would like to be sure that you did it
> intentionnaly.
I am beginning to wonder whether we should stop adding too many
recursion keywords and instead provide a cron-like syntax for advanced
users.
A quarterly report like Jonas implemented would be something like this:
t_recurs 12 0 0 0 1-4-7-10 *
or:
t_recurs 12 0 0 0 1-12/3 *
I think it would fit quite well with the Pythonic "make simple things
simple and complex things possible".
(and this will give me a way to be reminded to get my paper trashcan on
the street at 19:00 on monday every two weeks: "t_recurs 12 0 19 * *
mon/2" :))
Aurélien
More information about the Ml-yokadi
mailing list