note 102300 deleted from function.date by danbrown
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: info at anu3d dot info
----
The date function sometimes give wrong answers. This code will help you figure it out.
<?php
$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.