How to use time in if statements

Life will be very much easier if the time can be represented as the number of seconds since some time in the past - maybe midnight, or maybe 10 years ago.

If the RTC library cannot produce a value like that then IMHO it is worth converting the hours minutes and seconds.

Then you can check the time with simple comparisons of two unsigned long values.

...R