Hello,
In PHP, how can I get the number of seconds until the end of day?
Thanks.
Hello,
In PHP, how can I get the number of seconds until the end of day?
Thanks.
First thought:
86400 - date('H') * 3600 - date('i') * 60 - date('s')
Faster version derived from VolkerK's answer:
strtotime('tomorrow') - time()