Hello,
I need run a template only between 10:00 to 22:00.
I run this template with schedule of zenno every day at 10 am with 1000 repeats.
The problem is that I no want template run if time is more than 10 pm. Some time finish 1000 reps before 22 and other times after.
I think that is posible doing this :
{-timenow.date-} to variabletime
variabletime = 09/02/2012 23:20:18
make regex to get hour time
hourtimevar = 23
Then make swith
if hourtime = 10, 11, 12, 13... 22 (litle bug because template run to 22:59 ) go to first step of template
I think work good but I need a lot code.
I want know if you know other way more easy to make same.
bye
I need run a template only between 10:00 to 22:00.
I run this template with schedule of zenno every day at 10 am with 1000 repeats.
The problem is that I no want template run if time is more than 10 pm. Some time finish 1000 reps before 22 and other times after.
I think that is posible doing this :
{-timenow.date-} to variabletime
variabletime = 09/02/2012 23:20:18
make regex to get hour time
hourtimevar = 23
Then make swith
if hourtime = 10, 11, 12, 13... 22 (litle bug because template run to 22:59 ) go to first step of template
I think work good but I need a lot code.
I want know if you know other way more easy to make same.
bye