/external/python/dateutil/dateutil/test/ |
D | test_tz.py | 8 from datetime import datetime, timedelta 154 EST_TUPLE = ('EST', timedelta(hours=-5), timedelta(hours=0)) 155 EDT_TUPLE = ('EDT', timedelta(hours=-4), timedelta(hours=1)) 208 self.assertEqual(t0_syd0.utcoffset(), timedelta(hours=11)) 209 self.assertEqual(t1_syd1.utcoffset(), timedelta(hours=10)) 230 self.assertEqual(t0.utcoffset(), timedelta(hours=10)) 231 self.assertEqual(t1.utcoffset(), timedelta(hours=11)) 253 self.assertEqual(t0_tor.utcoffset(), timedelta(hours=-4.0)) 254 self.assertEqual(t1_tor.utcoffset(), timedelta(hours=-5.0)) 276 self.assertEqual(t0.utcoffset(), timedelta(hours=-5.0)) [all …]
|
D | test_utils.py | 3 from datetime import timedelta, datetime 46 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)))
|
/external/python/cpython2/Lib/test/ |
D | test_datetime.py | 14 from datetime import timedelta 46 offset = timedelta(minutes=offset) 48 dstoffset = timedelta(minutes=dstoffset) 95 self.assertEqual(fo.utcoffset(dt), timedelta(minutes=3)) 97 self.assertEqual(fo.dst(dt), timedelta(minutes=42)) 112 offset = timedelta(minutes=-300) 168 theclass = timedelta 172 td = timedelta 197 td = timedelta 242 a = timedelta(42) [all …]
|
/external/python/cpython3/Lib/test/ |
D | datetimetester.py | 28 from datetime import timedelta 113 offset = timedelta(minutes=offset) 115 dstoffset = timedelta(minutes=dstoffset) 176 self.assertEqual(fo.utcoffset(dt), timedelta(minutes=3)) 178 self.assertEqual(fo.dst(dt), timedelta(minutes=42)) 193 offset = timedelta(minutes=-300) 213 DSTDIFF = DSTOFFSET = timedelta(hours=1) 238 self.ACDT = timezone(timedelta(hours=9.5), 'ACDT') 239 self.EST = timezone(-timedelta(hours=5), 'EST') 256 limit = timedelta(hours=23, minutes=59) [all …]
|
/external/python/cpython3/Lib/ |
D | datetime.py | 185 hh, mm = divmod(off, timedelta(hours=1)) 186 mm, ss = divmod(mm, timedelta(minutes=1)) 228 h, rest = divmod(offset, timedelta(hours=1)) 229 m, rest = divmod(rest, timedelta(minutes=1)) 345 td = timedelta(hours=tz_comps[0], minutes=tz_comps[1], 371 if not isinstance(offset, timedelta): 374 if not -timedelta(1) < offset < timedelta(1): 454 class timedelta: class 622 if isinstance(other, timedelta): 625 return timedelta(self._days + other._days, [all …]
|
/external/python/cpython2/Doc/includes/ |
D | tzinfo-examples.py | 1 from datetime import tzinfo, timedelta, datetime 3 ZERO = timedelta(0) 4 HOUR = timedelta(hours=1) 30 self.__offset = timedelta(minutes = offset) 46 STDOFFSET = timedelta(seconds = -_time.timezone) 48 DSTOFFSET = timedelta(seconds = -_time.altzone) 87 dt += timedelta(days_to_go) 119 self.stdoffset = timedelta(hours=hours)
|
/external/python/cpython3/Doc/includes/ |
D | tzinfo_examples.py | 1 from datetime import tzinfo, timedelta, datetime 3 ZERO = timedelta(0) 4 HOUR = timedelta(hours=1) 5 SECOND = timedelta(seconds=1) 13 STDOFFSET = timedelta(seconds = -_time.timezone) 15 DSTOFFSET = timedelta(seconds = -_time.altzone) 64 dt += timedelta(days_to_go) 113 self.stdoffset = timedelta(hours=hours)
|
/external/python/cpython2/Doc/library/ |
D | datetime.rst | 97 .. class:: timedelta 124 The distinction between naive and aware doesn't apply to :class:`timedelta` 130 timedelta 137 .. _datetime-timedelta: 139 :class:`timedelta` Objects 142 A :class:`timedelta` object represents a duration, the difference between two 145 .. class:: timedelta([days[, seconds[, microseconds[, milliseconds[, minutes[, hours[, weeks]]]]]]]) 176 >>> from datetime import timedelta 177 >>> d = timedelta(microseconds=-1) 184 .. attribute:: timedelta.min [all …]
|
/external/python/cpython3/Doc/library/ |
D | datetime.rst | 102 .. class:: timedelta 138 The distinction between naive and aware doesn't apply to :class:`timedelta` 144 timedelta 152 .. _datetime-timedelta: 154 :class:`timedelta` Objects 157 A :class:`timedelta` object represents a duration, the difference between two 160 .. class:: timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0) 193 >>> from datetime import timedelta 194 >>> d = timedelta(microseconds=-1) 201 .. attribute:: timedelta.min [all …]
|
/external/autotest/site_utils/ |
D | count_jobs_unittest.py | 7 from datetime import timedelta, datetime 37 count_jobs.number_of_jobs_since(timedelta(days=999))) 54 models.Job(created_on=some_day - timedelta(hours=i)).save() 58 count_jobs.number_of_jobs_since(timedelta(days=days)))
|
D | count_jobs.py | 10 from datetime import datetime, timedelta 38 count = number_of_jobs_since(timedelta(days=1))
|
/external/autotest/utils/ |
D | site_check_dut_usage.py | 86 total_run_time = datetime.timedelta() 87 total_queued_time = datetime.timedelta() 117 print 'Average Job Time ', datetime.timedelta(seconds=int( 119 print 'Average Time Job Queued ', datetime.timedelta(seconds=int(
|
/external/toolchain-utils/automation/common/ |
D | events.py | 42 return datetime.timedelta(seconds=time_elapsed) 45 if isinstance(time_elapsed, datetime.timedelta): 60 return datetime.timedelta(seconds=int(self.time_elapsed.seconds)) 107 return datetime.timedelta(seconds=int(total_time_elapsed))
|
/external/python/dateutil/dateutil/tz/ |
D | tz.py | 31 ZERO = datetime.timedelta(0) 140 self._offset = datetime.timedelta(seconds=offset) 196 self._std_offset = datetime.timedelta(seconds=-time.timezone) 198 self._dst_offset = datetime.timedelta(seconds=-time.altzone) 559 tti.dstoffset = datetime.timedelta(0) 560 tti.delta = datetime.timedelta(seconds=gmtoff) 635 if not isinstance(tti.dstoffset, datetime.timedelta): 636 tti.dstoffset = datetime.timedelta(seconds=tti.dstoffset) 707 dt_out = dt + datetime.timedelta(seconds=tti.offset) 903 self._std_offset = datetime.timedelta(seconds=stdoffset) [all …]
|
D | win.py | 19 ONEWEEK = datetime.timedelta(7) 209 self._std_offset = datetime.timedelta(minutes=stdoffset) 210 self._dst_offset = datetime.timedelta(minutes=dstoffset) 257 self._std_offset = datetime.timedelta(minutes=stdoffset) 258 self._dst_offset = datetime.timedelta(minutes=dstoffset)
|
D | _factories.py | 1 from datetime import timedelta 25 if isinstance(offset, timedelta):
|
/external/grpc-grpc/tools/failures/ |
D | detect_new_failures.py | 189 a_week_ago = today - datetime.timedelta(days=7) 241 datetime.date.today() - datetime.timedelta(days=args.calibration_days) - 242 datetime.timedelta(days=args.reporting_days)) 243 calibration_end = calibration_begin + datetime.timedelta( 246 reporting_end = reporting_begin + datetime.timedelta(
|
/external/python/cpython3/Lib/test/test_email/ |
D | test_utils.py | 14 utcoffset = datetime.timedelta(hours=-7) 99 t2 = t0 - datetime.timedelta(hours=5) 100 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5))) 108 t2 = t0 - datetime.timedelta(hours=5) 109 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5)))
|
/external/python/apitools/apitools/base/protorpclite/ |
D | util.py | 215 if isinstance(offset, datetime.timedelta): 225 return datetime.timedelta(minutes=self.__offset) 238 return datetime.timedelta(0)
|
/external/autotest/client/cros/video/ |
D | sequence_generator.py | 44 return [datetime.timedelta(milliseconds=x) for x in 83 return [datetime.timedelta(seconds=t) for t in randomized_time_seq]
|
/external/python/dateutil/dateutil/parser/ |
D | isoparser.py | 8 from datetime import datetime, timedelta, time, date 280 base_date = date(year, 1, 1) + timedelta(days=ordinal_day - 1) 312 week_1 = jan_4 - timedelta(days=jan_4.isocalendar()[2] - 1) 316 return week_1 + timedelta(days=week_offset)
|
/external/python/oauth2client/tests/ |
D | test_file.py | 118 datetime.timedelta(minutes=15)) 141 datetime.timedelta(minutes=15)) 170 datetime.timedelta(minutes=15)) 185 datetime.timedelta(minutes=15))
|
/external/toolchain-utils/crosperf/ |
D | experiment_status.py | 74 eta = datetime.timedelta(seconds=eta_seconds) 82 datetime.timedelta(seconds=int(elapsed_time)), eta)) 122 elapsed = str(datetime.timedelta(seconds=int(t - t_last)))
|
/external/fonttools/Lib/fontTools/ufoLib/ |
D | utils.py | 18 from datetime import tzinfo, timedelta 20 ZERO = timedelta(0)
|
/external/python/cpython2/Demo/tkinter/ttk/ |
D | ttkcalendar.py | 21 timedelta = calendar.datetime.timedelta variable in Calendar 192 self._date = self._date - self.timedelta(days=1) 201 self._date = self._date + self.timedelta(
|