复制代码 代码如下:

function _niceTime($minute){
$m = $minute - 5;
$date = new DateTime();
$date->setTime(9, 00);//设置每天早上9点
return date("Y-m-d H:i",strtotime("+$m minute",$date->getTimestamp()));
}

http://www.bkjia.com/PHPjc/325914.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/325914.htmlTechArticle复制代码 代码如下: function _niceTime($minute){ $m = $minute - 5; $date = new DateTime(); $date-setTime(9, 00);//设置每天早上9点 return date("Y-m-d H:i",strtotime("+...

09-17 19:51