/**
* 向后延迟X分钟,取整点
* $delay 延迟分钟
* $time 格式 2020-01-05 02:05:00
* */
function delayMinuteInt($delay=10,$time=''){
// $time = '2021-06-23 11:34:00';
if(empty($time)){
$time = date('Y-m-d H:i:s',time());
}
$after_time = (date('i',(strtotime($time)+$delay*60))%10);
$start_time = date('i',(strtotime($time)+$delay*60));
if($after_time!=0){
$minute = 10-$after_time;
$start_time = date('Y-m-d H:i',(strtotime($time)+($delay*60)+($minute*60)));
}
return $start_time;
}