📜  如何检查时间重叠 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:50.975000             🧑  作者: Mango

代码示例2
public function check_time_overlap($start_time1, $end_time1, $start_time2, $end_time2) {
    return (($start_time1) <=  ($end_time2) && ($start_time2) < ($end_time1) ? true : false);
}

// true: overlap
// falseL not overlap