PHP 的时间格式

//$str='1342367999';
//$str1='1340985540';
//$time=date("Y-m-d H:i:s");
//$t1=date("Y-m-d H:i:s",$str1);
//echo $t1.'<br>';
//echo strtotime($time).'<br>';

//$newtime=strtotime($time);

//echo date("Y-m-d H:i:s",$newtime);

原文地址:https://www.cnblogs.com/dami520/p/2592440.html