note 71863 added to function.strtotime
| From: | flash at example dot com | Date: | Wed, 20 Dec 2006 11:12:34 +0000 |
| Subject: | note 71863 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120785@lists.php.net to get a copy of this message | ||
For those who want to create accurate flags for future dates use:
<?php
strtotime("+1 week 00:00");
?>
Using the "00:00" to specify midnight is handy if you need parts of your script to
activate on specific dates.
Note: Using "00:00" sets the seconds to 00 as well. If you are really picky you could use
"00:00:00"
----
Server IP: 85.116.0.130
Probable Submitter: 213.123.205.84
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/71863
Del: integrated -- https://master.php.net/note/delete/71863/integrated
Del: useless -- https://master.php.net/note/delete/71863/useless
Del: bad code -- https://master.php.net/note/delete/71863/bad+code
Del: spam -- https://master.php.net/note/delete/71863/spam
Del: non-english -- https://master.php.net/note/delete/71863/non-english
Del: in docs -- https://master.php.net/note/delete/71863/in+docs
Del: other reasons-- https://master.php.net/note/delete/71863
Reject -- https://master.php.net/note/reject/71863
Search -- https://master.php.net/manage/user-notes.php