Relevance Statement For Time

I want to create a relevance statement that makes it relevant during a certain time period for example 8am until 10pm. Any ideas? Thanks!

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
2 Likes