Time Groups: "4th Thursday" ?

izrunas's picture

Is there a way to modify the time groups module to allow entry of things like "4th Thursday" instead of using a specific date? Since there are so many events and so many holidays which are based on this criteria, I think it would be an extremely useful enhancement. Thanks!


__________________

R. Eriks Goodwin-Pfister
UniMatrix xSP Application, VPS and Server Hosting
http//www.unimatrix.net


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

As we use the built in

mickecarlsson's picture

As we use the built in function in Asterisk, you can try this:

Make a new Time Condition, call it Thanksgiving
Set Week Day start: to Thursday
Set Month Day start: to 22
Set Month Day finish: to 28
Set Month start: to November

Now, when it is Thursday in November between 22nd and 28th, it will be true

You can read more here about the function we use and the settings that can be applied:
http://www.voip-info.org/wiki/view/Asterisk+cmd+GotoIfTime


__________________

Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)