Best way to use time in if statements

JayWarne:
I am trying to make a Timer for a project. Using RTC i have set the time and set the update interval to maintain a true time.

Now i wish to make Variables or switch cases based on variance between time. i need 24h but to be able to overlap between the days

ie have time periods from 1600 to 0345 so if current time is between this range do this else do nothing

Here is a recent thread about this:
https://forum.arduino.cc/index.php?topic=536677.0