PHP setTime 设置当前时间的代码

2026-01-17 16:43:55 作者:用户投稿
复制代码 代码如下:
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()));
}

联络方式:

4008905355

邮箱:9196886@qq.com

Q Q:9196886

微信二维码