07.04.2017, 16:27
A number can't be higher than 21 and lower than 0, it's not logically possible. I think what you're trying to achieve is this:
Or simply..
Код:
if(hour >= 21 && hour <= 24) // 00:00 = 24:00
Код:
if(hour >= 21)