def __contains__(self, other):
if not isinstance(other, Time):<EOL><INDENT>raise TypeError(<EOL>'<STR_LIT>'<EOL>% (other,))<EOL><DEDENT>if other._time < self._time:<EOL><INDENT>return False<EOL><DEDENT>if self._time + self.resolution < other._time + other.resolution:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Test if another Time instance is entirely within the period addressed by this one.