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.

>>> import abjad
>>> inequality = abjad.timespantools.timespan_2_stops_when_timespan_1_stops()
>>> f(inequality)
abjad.TimespanTimespanTimeRelation(
    inequality=abjad.CompoundInequality(
        [
            abjad.TimespanInequality('timespan_2.stop_offset == timespan_1.stop_offset'),
            ],
        logical_operator='and',
        ),
    )

Returns time relation or boolean.