时间:2021-07-01 10:21:17 帮助过:19人阅读
/*
*比较时间段一与时间段二是否有交集
*/
function isMixTime($begintime1,$endtime1,$begintime2,$endtime2)
{
$status = $begintime2 - $begintime1;
if($status>0){
$status2 = $begintime2 - $endtime1;
if($status2>0){
return false;
}else{
return true;
}
}else{
$status2 = $begintime1 - $endtime2;
if($status2>0){
return false;
}else{
return true;
}
}
}
http://www.bkjia.com/PHPjc/323439.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/323439.htmlTechArticle 代码如下:
/* *比较时间段一与时间段二是否有交集 */ function isMixTime($begintime1,$endtime1,$begintime2,$endtime2) { $status = $begintime2 - $begint...