How to check if time is between two times

Multiple ways are there

Among them try this as one of the method

Use this extension and use two function Isbefore and Isafter

If the given time IsBefore and the given time IsAfter
Then set blocks for true
Else set blocks for false e