timespan_2_stops_when_timespan_1_stops

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

Makes time relation indicating that timespan_2 happens during timespan_1.

>>> inequality = timespantools.timespan_2_stops_when_timespan_1_stops()
>>> print(format(inequality))
timespantools.TimespanTimespanTimeRelation(
    inequality=timespantools.CompoundInequality(
        [
            timespantools.Inequality('timespan_2.stop_offset == timespan_1.stop_offset'),
            ],
        logical_operator='and',
        ),
    )

Returns time relation or boolean.