//$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/archive/2012/07/15/2592440.html