开发者

Wrong date from timestamp

开发者 https://www.devze.com 2023-03-11 18:44 出处:网络
<?php $z=$GLOBALS[\'argv\'][1]; $date=date(\'Y-m-d H:m:s\',$z); echo $z.\"\\n\"; echo $date.\"\\n\"; echo strtotime($date).\"\\n\";
<?php
    $z=$GLOBALS['argv'][1];
    $date=date('Y-m-d H:m:s',$z);
    echo $z."\n";
    echo $date."\n";
    echo strtotime($date)."\n";
?>

When I pass 1307433995 its ok

1307433995
2011-06-07 10:06:35
1307433995

but when I pa开发者_如何学运维ss 1307436121 it`s something weird...

1307436121
2011-06-07 10:06:01
1307433961

Any help?


Minutes is i not m in the time formatting.

0

精彩评论

暂无评论...
验证码 换一张
取 消