combined AND OR


hi,

i have problem combine , or.
i need action first day of month @ midnight (or within 5 seconds past midnight)

this code check i'ts not working. what's wrong?

**********************************************************************
if (now.day()==1 && now.hour() == 0  &&  now.minute() == 0 && (now.second()==0 || now.second()<=5))
{
   actions comes here;
   ....
   ....

}
****************************************************************

who can me?

thanks

herman

code: [select]
if (now.day()==1 && now.hour() == 0  &&  now.minute() == 0 && now.second()<=5)
?


Arduino Forum > Using Arduino > Programming Questions > combined AND OR


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code