Page 1 of 1

Calculating midnight

Posted: Wed Feb 10, 2016 9:39 am
by cosmith71
Is midnight defined as (now()%14400==0)?

Thanks,

--Colin

Re: Calculating midnight

Posted: Wed Feb 10, 2016 12:09 pm
by cosmith71
Actually, I think it's

now()%86400

or now()%SECS_PER_DAY

14400 would be every 4 hours, right?

Re: Calculating midnight

Posted: Wed Feb 10, 2016 4:39 pm
by lnevo
Yes