in the old situation this was for the hours but when the hour is going pas 00:00 the it is not working anymore
Code: Select all
if (23..8) === t.hour # only works until 00:00
Code: Select all
(7..23) === t.hour
Code: Select all
t = Time.now + (2*60*60)
sys.Log(t.strftime('time: %c'))
tijd = t.strftime('%H:%M')
sys.Log("Tijd : #{tijd}")
if ('22:15') < tijd || ('07:30') > tijd
sys.Respond(486. "User is not Online ?")
end