I have a ressource, that is only available for 2 hours a day. But the 2 hours is not limited to a specific time interval. It can be any time in the day, just only for 2 hours. How can i achieve this?

I have a ressource, that is only available for 2 hours a day. But the 2 hours is not limited to a specific time interval. It can be any time in the day, just only for 2 hours. How can i achieve this?
So this resource can work any time of the day - 24 hours?
But can only work for 2 hours for the day?