Home
last modified time | relevance | path

Searched refs:timedelta (Results 1 – 25 of 65) sorted by relevance

123

/third_party/python/Lib/test/
Ddatetimetester.py27 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 …]
Dbisect_cmd.py171 % (iteration, datetime.timedelta(seconds=dt)))
175 % (iteration, datetime.timedelta(seconds=dt)))
/third_party/python/Lib/
Ddatetime.py190 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/
Dlog_section.py3 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),
Dlog_follower.py17 from datetime import datetime, timedelta
35 timeout_durations: dict[LogSectionType, timedelta] = field(
38 fallback_timeout: timedelta = FALLBACK_GITLAB_SECTION_TIMEOUT
Dgitlab_section.py5 from datetime import datetime, timedelta
77 def delta_time(self) -> Optional[timedelta]:
/third_party/python/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py17 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/
Dtzinfo_examples.py1 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/
Ddatetime.rst115 .. 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/
Dgen_calendar_entries.py114 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/
Dexceptions.py1 from datetime import timedelta
9 def __init__(self, *args, timeout_duration: timedelta) -> None: argument
Dlava_job_submitter.py22 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/
Dtest_utils.py14 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/
Dtest_lava_log.py8 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/
Dgenspec.py16 from datetime import date, timedelta
28 friday = today + timedelta((4 - today.weekday()) % 7)
/third_party/python/Lib/email/
Dutils.py205 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/
Dtest_assertions.py54 second = first + datetime.timedelta(seconds=10)
56 delta=datetime.timedelta(seconds=20))
58 delta=datetime.timedelta(seconds=5))
/third_party/python/Misc/NEWS.d/
D3.5.0a2.rst114 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/
Dwell_known_types.py45 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/
Dduration.proto86 // Example 3: Compute Duration from datetime.timedelta in Python.
88 // td = datetime.timedelta(days=3, minutes=10)
/third_party/python/Mac/Tools/
Dplistlib_generate_testdata.py32 …ime.datetime(2004, 10, 26, 10, 33, 33, tzinfo=datetime.timezone(datetime.timedelta(0))).timestamp()
/third_party/PyYAML/tests/lib/
Dtest_constructor.py219 self.__offset = datetime.timedelta(minutes=offset)
226 return datetime.timedelta(0)
/third_party/googletest/googletest/test/
Dgtest_xml_output_unittest.py285 self.assertTrue(time_delta < datetime.timedelta(seconds=600),
/third_party/json/tools/serve_header/
Dserve_header.py11 from datetime import datetime, timedelta
55 self.threshold = timedelta(seconds=threshold)
/third_party/python/Doc/c-api/
Ddatetime.rst130 Return a :class:`datetime.timedelta` object representing the given number
133 :class:`datetime.timedelta` objects.

123