Restrict to valid hour numbers in time types