比较时间段一与时间段二是否有交集的php函数
2018-09-21 00:05
阅读:353
复制代码 代码如下:
/*
*比较时间段一与时间段二是否有交集
*/
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;
}
}
}
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:比较时间段一与时间段二是否有交集的php函数
文章链接:http://soscw.com/index.php/essay/16169.html
文章标题:比较时间段一与时间段二是否有交集的php函数
文章链接:http://soscw.com/index.php/essay/16169.html
评论
亲,登录后才可以留言!