Timer Between 2 Times
Posted: Wednesday 19 October 2016 14:36
Hello,
ich have a Problem. I Read and test since 4 Hours and can't get it work. i neet the following:
I have an switch that should torned on between 2 Time frames. eg.
Switch = on (when time 12:13 - 12:37 Uhr)
Switch = off (when time 12:38 - 12:12 Uhr)
the following i Have:
i have an another script that writes the hour an minute to an variable so i can use it in various scripts. but i dont become the time diff to work.
i hope that anybody can help me to get this to work.
Regards
Marcel
ich have a Problem. I Read and test since 4 Hours and can't get it work. i neet the following:
I have an switch that should torned on between 2 Time frames. eg.
Switch = on (when time 12:13 - 12:37 Uhr)
Switch = off (when time 12:38 - 12:12 Uhr)
the following i Have:
Code: Select all
if ((tonumber(uservariables["Hour"]) >= 14 and tonumber(uservariables["Minute"]) >= 30) and (tonumber(uservariables["Hour"]) <= 14 and tonumber(uservariables["Minute"]) <= 35)) then print("Uhrzeit zwischen 14:30 und 14:35") end
i hope that anybody can help me to get this to work.
Regards
Marcel