php代码
/**
* 格式化日志
* @param string $date 日期
* xx秒前 xx分钟前 H:i mm-dd H:i Y-m-d H:i
* @return string
*/
public static function formatDate($date){
if(empty($date)){
return '';
}
$_curDate = getdate();
$_fmtDate = getdate(strtotime($date));
$_seconds = $_curDate[0]-$_fmtDate[0];
if($_seconds<div></div><p>
</p>










