hour(now)>=0 and hour(now)<=6

Hi there. How this codes can select two out of situations at the same time? Here my codes are:

int hh=hour(now);

if (hh>=0 and hh<=6) ;
{
Serial.println("Night Time For Me");

}

if (hh>=7 and hh<=23);
{
Serial.println("Day Time For Me");

}

when this codes run, I read that from Serial port screen :

Night Time For Me
Day Time For Me

As for you it could be possible?
How can I solve this issue?
Thanks in advance for your helps.

if (hh>=0 and hh<=6) ;

if (hh>=7 and hh<=23);

Remove the ; from both.

hey larry you must be genius or I'm blind in the codes for a longtimes. Thanks. It is done.

“genius”

No, just been there done that.