zcollection.merging.period.Period.intersects#

Period.intersects(other)[source]#

True if the periods overlap in any way.

In the example below p1 intersects with p2, p4, and p6.

      [---p1---[
            [---p2---[
               [---p3---[
 [---p4---[
[-p5-[
        [-p6-[
Parameters:

other (Period) – The other period to check.

Returns:

True if the periods intersect

Return type:

bool