Compare times

UKHeliBob:
Wrong

You can make as many comparisons as you like (within reason) but you must do it the right way

I assume that this

if ((now.hour() <= 10 ) && (now.hour() > 13 ))

is intended to test whether the hour is less than or equal to 10 or that the hour is greater than 13.

Is that what you want to test for ?
If not, then what do you want it to test for ?

Hi UKHeliBob

I'll try to explain what I'm about to do.

Yes, what I really need is a program that, from 10:00 a.m. to 5:00 p.m., show me on the LCD "open window", and that from 5:00 p.m. to 10:00 p.m. Show me the morning on the Lcd "closed window"

The clock is working fine, it shows the date and time on the LCD without any problem, now these comparisons of the schedules is that it does not work.

I'm using DS3231 in my tests.

Thank you very much for your attention.