def __contains__(self, other):
        """Test if another Time instance is entirely within the period addressed by this one."""
        if not isinstance(other, Time):
            raise TypeError(
                '%r is not a Time instance; can not test for containment'
                % (other,))
        if other._time < self._time:
            return False
        if self._time + self.resolution < other._time + other.resolution:
            return False
        return True
def __contains__ ( self , other ) : if not isinstance ( other , Time ) : raise TypeError ( '%r is not a Time instance; can not test for containment' % ( other , ) ) if other . _time < self . _time : return False if self . _time + self . resolution < other . _time + other . resolution : return False return True
Test if another Time instance is entirely within the period addressed by this one.