PHP setTime the code that sets the current time
- 2020-05-19 04:25:59
- OfStack
function _niceTime($minute){
$m = $minute - 5;
$date = new DateTime();
$date->setTime(9, 00);// Set every morning 9 point
return date("Y-m-d H:i",strtotime("+$m minute",$date->getTimestamp()));
}