/third_party/python/Lib/test/ |
D | datetimetester.py | 27 from datetime import timedelta 119 offset = timedelta(minutes=offset) 121 dstoffset = timedelta(minutes=dstoffset) 182 self.assertEqual(fo.utcoffset(dt), timedelta(minutes=3)) 184 self.assertEqual(fo.dst(dt), timedelta(minutes=42)) 199 offset = timedelta(minutes=-300) 219 DSTDIFF = DSTOFFSET = timedelta(hours=1) 244 self.ACDT = timezone(timedelta(hours=9.5), 'ACDT') 245 self.EST = timezone(-timedelta(hours=5), 'EST') 262 limit = timedelta(hours=23, minutes=59) [all …]
|
D | bisect_cmd.py | 171 % (iteration, datetime.timedelta(seconds=dt))) 175 % (iteration, datetime.timedelta(seconds=dt)))
|
/third_party/python/Lib/ |
D | datetime.py | 190 hh, mm = divmod(off, timedelta(hours=1)) 191 mm, ss = divmod(mm, timedelta(minutes=1)) 233 h, rest = divmod(offset, timedelta(hours=1)) 234 m, rest = divmod(rest, timedelta(minutes=1)) 350 td = timedelta(hours=tz_comps[0], minutes=tz_comps[1], 376 if not isinstance(offset, timedelta): 379 if not -timedelta(1) < offset < timedelta(1): 442 class timedelta: class 610 if isinstance(other, timedelta): 613 return timedelta(self._days + other._days, [all …]
|
/third_party/mesa3d/.gitlab-ci/lava/utils/ |
D | log_section.py | 3 from datetime import timedelta 18 FALLBACK_GITLAB_SECTION_TIMEOUT = timedelta(minutes=10) 26 LogSectionType.LAVA_BOOT: timedelta(minutes=9), 28 LogSectionType.TEST_SUITE: timedelta(minutes=5), 32 LogSectionType.TEST_CASE: timedelta(minutes=60), 35 LogSectionType.LAVA_POST_PROCESSING: timedelta(minutes=5),
|
D | log_follower.py | 17 from datetime import datetime, timedelta 35 timeout_durations: dict[LogSectionType, timedelta] = field( 38 fallback_timeout: timedelta = FALLBACK_GITLAB_SECTION_TIMEOUT
|
D | gitlab_section.py | 5 from datetime import datetime, timedelta 77 def delta_time(self) -> Optional[timedelta]:
|
/third_party/python/Lib/test/test_zoneinfo/ |
D | test_zoneinfo.py | 17 from datetime import date, datetime, time, timedelta, timezone 40 ZERO = timedelta(0) 41 ONE_H = timedelta(hours=1) 286 zone_transition.transition - timedelta(days=2), 294 zone_transition.transition + timedelta(days=2), 325 dt = zt.anomaly_start - timedelta(seconds=1) 333 dt = zt.anomaly_start + timedelta(seconds=1) 337 dt = zt.anomaly_end - timedelta(seconds=1) 345 dt = zt.anomaly_end + timedelta(seconds=1) 372 dt_before_utc = dt_utc - timedelta(seconds=1) [all …]
|
/third_party/python/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)
|
/third_party/python/Doc/library/ |
D | datetime.rst | 115 .. class:: timedelta 143 timedelta 182 The distinction between aware and naive doesn't apply to :class:`timedelta` 185 .. _datetime-timedelta: 187 :class:`timedelta` Objects 190 A :class:`timedelta` object represents a duration, the difference between two 193 .. class:: timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0) 217 >>> from datetime import timedelta 218 >>> delta = timedelta( 229 datetime.timedelta(days=64, seconds=29156, microseconds=10) [all …]
|
/third_party/mesa3d/bin/ |
D | gen_calendar_entries.py | 114 date = date + datetime.timedelta(days=7) 116 date = date + datetime.timedelta(days=7) 142 return date + datetime.timedelta(days=delta) 158 date = date + datetime.timedelta(days=14) 160 date = date + datetime.timedelta(days=14) 217 date = date + datetime.timedelta(days=days)
|
/third_party/mesa3d/.gitlab-ci/lava/ |
D | exceptions.py | 1 from datetime import timedelta 9 def __init__(self, *args, timeout_duration: timedelta) -> None: argument
|
D | lava_job_submitter.py | 22 from datetime import datetime, timedelta 426 max_idle_time = timedelta(seconds=DEVICE_HANGING_TIMEOUT_SEC) 429 max_idle_time = timedelta(seconds=DEVICE_HANGING_TIMEOUT_SEC)
|
/third_party/python/Lib/test/test_email/ |
D | test_utils.py | 14 utcoffset = datetime.timedelta(hours=-7) 109 t2 = t0 - datetime.timedelta(hours=5) 110 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5))) 118 t2 = t0 - datetime.timedelta(hours=5) 119 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5)))
|
/third_party/mesa3d/.gitlab-ci/tests/utils/ |
D | test_lava_log.py | 8 from datetime import datetime, timedelta 267 td = {LogSectionType.TEST_CASE: timedelta(minutes=1)} 271 lf.timeout_durations[LogSectionType.TEST_CASE] + timedelta(**timedelta_kwargs)
|
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
D | genspec.py | 16 from datetime import date, timedelta 28 friday = today + timedelta((4 - today.weekday()) % 7)
|
/third_party/python/Lib/email/ |
D | utils.py | 205 tzinfo=datetime.timezone(datetime.timedelta(seconds=tz))) 359 delta = datetime.timedelta(seconds=localtm.tm_gmtoff) 367 if delta == datetime.timedelta(seconds=gmtoff):
|
/third_party/python/Lib/unittest/test/ |
D | test_assertions.py | 54 second = first + datetime.timedelta(seconds=10) 56 delta=datetime.timedelta(seconds=20)) 58 delta=datetime.timedelta(seconds=5))
|
/third_party/python/Misc/NEWS.d/ |
D | 3.5.0a2.rst | 114 Corrected pure python implementation of timedelta division. 115 Eliminated OverflowError from ``timedelta * float`` for some floats; 116 Corrected rounding in timedelta true division.
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | well_known_types.py | 45 from datetime import timedelta 119 dt = datetime(1970, 1, 1) + timedelta(days, seconds) 241 return _EPOCH_DATETIME + timedelta( 369 return timedelta(
|
/third_party/protobuf/src/google/protobuf/ |
D | duration.proto | 86 // Example 3: Compute Duration from datetime.timedelta in Python. 88 // td = datetime.timedelta(days=3, minutes=10)
|
/third_party/python/Mac/Tools/ |
D | plistlib_generate_testdata.py | 32 …ime.datetime(2004, 10, 26, 10, 33, 33, tzinfo=datetime.timezone(datetime.timedelta(0))).timestamp()
|
/third_party/PyYAML/tests/lib/ |
D | test_constructor.py | 219 self.__offset = datetime.timedelta(minutes=offset) 226 return datetime.timedelta(0)
|
/third_party/googletest/googletest/test/ |
D | gtest_xml_output_unittest.py | 285 self.assertTrue(time_delta < datetime.timedelta(seconds=600),
|
/third_party/json/tools/serve_header/ |
D | serve_header.py | 11 from datetime import datetime, timedelta 55 self.threshold = timedelta(seconds=threshold)
|
/third_party/python/Doc/c-api/ |
D | datetime.rst | 130 Return a :class:`datetime.timedelta` object representing the given number 133 :class:`datetime.timedelta` objects.
|