Why are the dates different?
January 5th, 2009
No comments
<?php
echo date('Y-m-d H:m:s', 1229367412.43);
// gives 2008-12-15 13:12:52
echo date('Y-m-d H:m:s', 1229367412);
// givse 2008-12-15 13:12:52
mysql
select from_unixtime(1229367412.43);
// gives 2008-12-15 13:09:22
select from_unixtime(1229367412);
// gives 2008-12-15 13:09:21
The problem is your date function is calling for H:m:s -> Hour:Month:Seconds. Next time try H:i:s -> Hour:Mintues:Seconds.
You are dumb!
Categories: Uncategorized