在我的项目中,我需要将日期时间舍入,例如“08:10”到“08:00”。
更多例子
"8:20 到 8:15" "8:31 到 8:30"
在下一步中,我需要一个额外的方法来进行汇总。
例如“8:20 到 8:30”“8:31 到 8:45”
$shiftInPre = new \DateTime($row["time_start"] /* <-e.g. 8:02*/);
echo roundtoLastQuarterHour($shiftInPre);
jeck猫
相关分类