TimeSetup in openHAB

I am new with openHAB and want to add the functionality, that a sensor should only be used in a certain time of the day.

Therefore I thought is would be great if I can confirm the use for each hour. Like a table with 24cells.
Is anything like this possible?

See:

In your rules simply check vTimeOfDay:

if(vTimeOfDay.state.toString == "DAY") {
    // do stuff with your sensor
}