I want to see if a time I read from a db overlaps with a time provided by a user.
My database looks like this:
--------------------------------------
In case when $to is always later than $from we can use this more shorter solutions
$another_meeting = !($from > $to_compare || $from_compare > $to);