| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
The date function sometimes give wrong answers. This code will help you figure it out.
$d="2010-01-31 09:06:09";
$i= strtotime($d);
echo $d;
echo "<br>";
echo date("Y-m-d h:m:s",$i);
this gives the output:
2010-01-31 09:06:09
2010-01-31 09:01:09
very small change but still not accurate.
----
Server IP: 69.147.83.197
Probable Submitter: 112.134.121.235
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/102300
Del: integrated -- https://master.php.net/note/delete/102300/integrated
Del: useless -- https://master.php.net/note/delete/102300/useless
Del: bad code -- https://master.php.net/note/delete/102300/bad+code
Del: spam -- https://master.php.net/note/delete/102300/spam
Del: non-english -- https://master.php.net/note/delete/102300/non-english
Del: in docs -- https://master.php.net/note/delete/102300/in+docs
Del: other reasons-- https://master.php.net/note/delete/102300
Reject -- https://master.php.net/note/reject/102300
Search -- https://master.php.net/manage/user-notes.php