i 有两个时间值, 包括起始时间= 23: 00: 00 和估计时间= 00: 45: 00 现在我想添加起始时间和估计时间, 并将其存储在变量中, 我就是这样做的 。
$add = abs(strtotime($starttime) + strtotime($estimationtime));
现在我必须比较一个新的时间, 表示当前时间或其它时间间隔( 23: 50: 00)
if($time >=$starttime && $time <=$add)
{
$message=array("message"=>"there is an appointment");
}
如果我回回 $add I 没有得到正确的格式, 它显示 267575756700
pls 帮助我解决这个问题