note 13836 added to function.mktime.php
| From: | greg at cscape dot net | Date: | Thu, 05 Jul 2001 06:26:31 +0000 |
| Subject: | note 13836 added to function.mktime.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15002@lists.php.net to get a copy of this message | ||
Ok why doesn't this work?
$unix_timein = 993970839;
$pretty_timein = date("H,i,s,m,d,Y",$unix_timein);
$back_to_unix = mktime($pretty_timein);
here's are the results echoed
(simulated for your viewing pleasure)
unix_timein = 993970839 (obviously)
pretty_timin = 02,00,39,07,01,2001 (cool)
back_to_unix = 994,316,872 (nope nope nope)
WTF am I doing wrong?
TIA
http://www.php.net/manual/en/function.mktime.php