PHP setTime 设置当前时间的代码_PHP
程序员文章站
2022-06-15 08:57:58
...
复制代码 代码如下:
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()));
}
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()));
}