Answers for "how to calculate time overlap in time"

PHP
1

how to check time overlap

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
Posted by: Guest on October-07-2020

Code answers related to "how to calculate time overlap in time"

Browse Popular Code Answers by Language