/third_party/python/Lib/test/test_zoneinfo/ |
D | test_zoneinfo.py | 275 self.assertEqual(dt.utcoffset(), ZERO) 305 self.assertEqual(dt.utcoffset(), offset.utcoffset, dt) 360 self.assertEqual(dt.utcoffset(), offset.utcoffset, dt) 389 self.assertIs(t.utcoffset(), None) 400 self.assertEqual(t.utcoffset(), offset.utcoffset) 441 if zt.fold and zt.offset_after.utcoffset == ZERO: 566 self.assertEqual(dt.utcoffset(), offset.utcoffset) 611 self.assertEqual(dt.utcoffset(), DST.utcoffset) 647 self.assertEqual(dt.utcoffset(), offset.utcoffset) 654 self.assertIs(t.utcoffset(), None) [all …]
|
/third_party/python/Lib/test/ |
D | datetimetester.py | 127 def utcoffset(self, dt): member in FixedOffset 143 def utcoffset(self, datetime_module): member in _TZInfo 152 dt1.utcoffset() 161 self.assertRaises(NotImplementedError, useless.utcoffset, dt) 175 self.assertRaises(NotImplementedError, ne.utcoffset, dt) 182 self.assertEqual(fo.utcoffset(dt), timedelta(minutes=3)) 208 self.assertEqual(orig.utcoffset(None), offset) 215 self.assertEqual(derived.utcoffset(None), offset) 226 def utcoffset(self, dt): member in TestTZInfo.test_issue23600.UKSummerTime 238 self.assertEqual(t - t.utcoffset(), u) [all …]
|
D | test_logging.py | 3728 def utcoffset(self, dt): member in UTC 3731 dst = utcoffset
|
/third_party/python/Lib/ |
D | datetime.py | 227 offset = object.utcoffset() 1125 def utcoffset(self, dt): member in tzinfo 1145 dtoff = dt.utcoffset() 1351 myoff = self.utcoffset() 1352 otoff = other.utcoffset() 1377 tzoff = t.utcoffset() 1395 off = self.utcoffset() 1468 def utcoffset(self): member in time 1473 offset = self._tzinfo.utcoffset(None) 1803 offset = self.utcoffset() [all …]
|
/third_party/python/Doc/includes/ |
D | tzinfo_examples.py | 33 def utcoffset(self, dt): member in LocalTimezone 127 def utcoffset(self, dt): member in USTimeZone
|
/third_party/python/Doc/library/ |
D | datetime.rst | 171 2. ``d.tzinfo.utcoffset(d)`` does not return ``None`` 178 2. ``t.tzinfo.utcoffset(None)`` does not return ``None``. 1165 result is ``(a.replace(tzinfo=None) - a.utcoffset()) - (b.replace(tzinfo=None) 1166 - b.utcoffset())`` except that the implementation never overflows. 1180 offsets (obtained from ``self.utcoffset()``). 1243 :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. If *self* 1254 ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will have 1255 the same date and time data as ``dt - dt.utcoffset()``. 1270 utc = (self - self.utcoffset()).replace(tzinfo=tz) 1282 .. method:: datetime.utcoffset() [all …]
|
/third_party/python/Lib/test/test_email/ |
D | test_utils.py | 14 utcoffset = datetime.timedelta(hours=-7) variable in DateTimeTests 15 tz = datetime.timezone(utcoffset)
|
D | test_headerregistry.py | 173 utcoffset = datetime.timedelta(hours=-7) variable in TestDateHeader 174 tz = datetime.timezone(utcoffset) 181 self.assertEqual(h.datetime.utcoffset(), self.utcoffset)
|
/third_party/python/Lib/zoneinfo/ |
D | _zoneinfo.py | 105 def utcoffset(self, dt): member in ZoneInfo 240 _load_timedelta(utcoffset), _load_timedelta(dstoffset), tzname 242 for utcoffset, dstoffset, tzname in zip(utcoff, dstoff, abbr)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.7.0rc1.rst | 55 Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d)
|
D | 3.6.6rc1.rst | 132 Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d)
|
D | 3.8.0a1.rst | 4229 Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d)
|
/third_party/python/Modules/ |
D | _zoneinfo.c | 138 build_ttinfo(long utcoffset, long dstoffset, PyObject *tzname, _ttinfo *out); 763 build_ttinfo(long utcoffset, long dstoffset, PyObject *tzname, _ttinfo *out) in build_ttinfo() argument 769 out->utcoff_seconds = utcoffset; in build_ttinfo() 770 out->utcoff = load_timedelta(utcoffset); in build_ttinfo()
|
/third_party/PyYAML/tests/lib/ |
D | test_constructor.py | 221 def utcoffset(self, dt): member in _make_objects.FixedOffset
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | well_known_types_test.py | 269 def utcoffset(self, _): member in TimeUtilTest.testDatetimeConversionWithTimezone.TZ
|
/third_party/python/Misc/ |
D | HISTORY | 14221 ``tzname(dt)`` and ``utcoffset(dt)`` methods. The ``dst(dt)`` method always 22031 In dt.astimezone(tz), if tz.utcoffset(dt) returns a duration, 22038 The tzinfo methods utcoffset() and dst() must return a timedelta object
|