[PHP] Re: scheduler algorithm

2007-02-02 Thread frank
hmmm, a month period has 4*7 days e.g. then i can schedule on 31.3.07 a month period which will repeat itself on 30.4.07 and again on 30.5.07 even though may has 31 days. i dont see no other logic if you take a week period it same a week has always 7 days. how else would it make sense. the start

Re: [PHP] Re: scheduler algorithm

2007-02-02 Thread Richard Lynch
You may want to look at what various databases will do for you with date arithmetic. E.g., You can type this in MySQL: select date_add('2007-01-31', interval 1 month); I'm not sure what it will answer, but you can type that. :-) In Postgresql, it's more like: select '1/31/2007'::date + '1