offset_happens_during_timespan

timespantools.offset_happens_during_timespan(timespan=None, offset=None, hold=False)

MakeS time relation indicating that offset happens during timespan.

>>> relation = timespantools.offset_happens_during_timespan()
>>> print(format(relation))
timespantools.OffsetTimespanTimeRelation(
    inequality=timespantools.CompoundInequality(
        [
            timespantools.Inequality('timespan.start <= offset'),
            timespantools.Inequality('offset < timespan.stop'),
            ],
        logical_operator='and',
        ),
    )

Returns time relation or boolean.