Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function rangesOverlap($date1A, $date1Z, $date2A, $date2Z)
- {
- if ($date1A > $date2Z) return false; // first range is after the second
- if ($date2Z < $date1Z) return false; // second range is before the first
- // they must overlap
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement