Searched refs:within_delta (Results 1 – 3 of 3) sorted by relevance
9 from dateutil.utils import within_delta46 self.assertTrue(within_delta(d1, d2, timedelta(seconds=1)))47 self.assertFalse(within_delta(d1, d2, timedelta(microseconds=1)))53 self.assertTrue(within_delta(d2, d1, timedelta(days=-1)))
64 def within_delta(dt1, dt2, delta): function
244 - Added within_delta function to utils - added by @justanr (gh issue #432,