KS6021
A number wrapped round the long way. ($hour + 24) % 24 and (($hour % 24) + 24) % 24 keep a number inside 0 to 23 by adding the divisor before taking the remainder. $hour %% 24 does the same in one step, and it works for any negative number, not only those above -24. This is a warning; Use %% rewrites it.