[Ml-yokadi] Quaterly recurrence patch

Jonas Christian Drewsen jdrewsen at gmail.com
Wed Jul 22 11:14:27 CEST 2009


On Tue, 2009-07-21 at 21:34 +0200, 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.



It is indeed intentionally. If you like it better I can change it so
that you have to specify the first recur month:

 t_recurs <id> quaterly <start-month> <first/second/third/last> <mo, tu,
we, th, fr, sa, su> <hh:mm>

 I would rather not that it just defaulted to use current date as offset
for the quater ie. the example you mentioned with a task in august
making the next recurrence in november.


> >Regarding grouping the quaterly code with the yearly: I did this because
> >all code except for a few lines can be shared. I believe that reducing
> >the amount of code duplication can help reduce the number of bugs in a
> >simple case that like this.
> 
> Ok I see. That's not a problem.
> 
> a+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sequanux.org/pipermail/ml-yokadi/attachments/20090722/e73adc81/attachment.htm>


More information about the Ml-yokadi mailing list