You could use hour_of_day and compare with the integer that meets your needs, ie for me at 10PM.
Q: hour_of_day of current time_of_day
A: 22
So to check for between 8AM and 10PM
Q: (it > 8 and it < 22) of hour_of_day of current time_of_day
A: True
Use >= and =< if you want to include 8AM and 10PM
Q: (it >= 8 and it <= 22) of hour_of_day of current time_of_day
A: True