timespan_2_intersects_timespan_1

timespantools.timespan_2_intersects_timespan_1(timespan_1=None, timespan_2=None, hold=False)

Makes time relation indicating that timespan_2 intersects timespan_1.

>>> relation = timespantools.timespan_2_intersects_timespan_1()
>>> print(format(relation))
timespantools.TimespanTimespanTimeRelation(
    inequality=timespantools.CompoundInequality(
        [
            timespantools.CompoundInequality(
                [
                    timespantools.Inequality('timespan_1.start_offset <= timespan_2.start_offset'),
                    timespantools.Inequality('timespan_2.start_offset < timespan_1.stop_offset'),
                    ],
                logical_operator='and',
                ),
            timespantools.CompoundInequality(
                [
                    timespantools.Inequality('timespan_2.start_offset <= timespan_1.start_offset'),
                    timespantools.Inequality('timespan_1.start_offset < timespan_2.stop_offset'),
                    ],
                logical_operator='and',
                ),
            ],
        logical_operator='or',
        ),
    )

Returns time relation or boolean.