Calculating midnight

Do you have a question on how to do something.
Ask in here.
Post Reply
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Calculating midnight

Post by cosmith71 »

Is midnight defined as (now()%14400==0)?

Thanks,

--Colin
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Calculating midnight

Post by cosmith71 »

Actually, I think it's

now()%86400

or now()%SECS_PER_DAY

14400 would be every 4 hours, right?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Calculating midnight

Post by lnevo »

Yes
Post Reply