note 102300 deleted from function.date by danbrown

[email protected]
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.