Skip to main content

Question about time schedules

Posted by devnull8888 on Sat, 09/20/2014

I am using MTE and I have a question about time schedules. I want to create a schedule that runs from mid April through mid January. Can I still set the "from" month to April and the "to" month to January? What I'm saying is will the months "wrap around" or do I need to create a schedule that seperately specifies April through December and then from January 1 through January 15?
Thanks;
John


Submitted by eeman on Fri, 09/26/2014 Permalink

the logic of GotoIFTime is not a comparison of two ranges. its a comparison of 4 elements, all have to be true to trigger an action..

Time range | weekdays | month days | months

so if you tried making a rule that said April 1 at 8am - Jan 15 6pm this is what would happen..

0800-1800 | * | 1-15 | april-jan

so the first thing it would do is check the time range... if the time is between 8am and 6 pm it would be true and move onto the next set of ranges... if it were to be at 9pm even if its july, it would be false and stop trying matches

next it checks weekdays, which we made a match all

then it checks the days of the month... is it between the 1st and the 15th? If its July 27th it would be FALSE and stop progressing through the matches instead of what you intended

Finally comes the months - is it between April and January if yes, then all conditions match true and execute the script

as you can see, over half the months and more than half the day will match FALSE despite what you thought you were entering into the schedule

Submitted by devnull8888 on Fri, 10/03/2014 Permalink

Yes, thank you for the responses. Unfortunately, I had to learn this lesson the hard way. I had set the time schedule to be April 16 - Dec 31, thinking that it would be tested the way that I set it. Then, on October 1, I get an emergency call from my customer saying that they aren't receiving any calls. Fortunately, I figured out pretty quickly that they wont be able to receive calls the first 15 days of each month.
Thanks;
John