Re: scheduler algorithm
| From: | frank | Date: | Fri, 02 Feb 2007 22:24:04 +0000 |
| Subject: | Re: scheduler algorithm | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248213@lists.php.net to get a copy of this message | ||
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
date += the period
fra*
""bruce"" <bedouglas@earthlink.net> schrieb im Newsbeitrag
news:4a2f01c74715$d0823cf0$0301a8c0@tmesa.com...
> hi...
>
> i'm creating a quick/dirty app for scheduling a function, based on the
user
> entering a start time/date, as well as a potential periodic timeframe.
>
> ie:
> the user enters-
> start time/date: 10:00am 01/10/07
> periodic monthly
>
> the idea is to be able to have a process start running on the start
> time/date, and then to repeat on a monthly basis on the same time/date. i
> can easily accomplish this for dates that are '1-28', but i'm looking for
> suggestions as to how to handle situations where the number of the start
> date, might be greater than the end date of the 'current" month.
>
> in searching google, i haven't come up with many apps that handle this...
>
> thoughts/comments/etc...
>
> thanks.
>
> -bruce