def is_not_close_to(self, other, tolerance):
self._validate_close_to_args(self.val, other, tolerance)<EOL>if self.val >= (other-tolerance) and self.val <= (other+tolerance):<EOL><INDENT>if type(self.val) is datetime.datetime:<EOL><INDENT>tolerance_seconds = tolerance.days * <NUM_LIT> + tolerance.seconds + tolerance.microseconds / <NUM_LIT><EOL>h, rem = divmod(tolerance_seconds, <NUM_LIT>)<EOL>m, s = divmod(rem, <NUM_LIT>)<EOL>self._err('<STR_LIT>' % (self.val.strftime('<STR_LIT>'), other.strftime('<STR_LIT>'), h, m, s))<EOL><DEDENT>else:<EOL><INDENT>self._err('<STR_LIT>' % (self.val, other, tolerance))<EOL><DEDENT><DEDENT>return self<EOL>
Asserts that val is numeric and is not close to other within tolerance.