Home
last modified time | relevance | path

Searched refs:utcoffset (Results 1 – 16 of 16) sorted by relevance

/third_party/python/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py275 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/
Ddatetimetester.py127 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 …]
Dtest_logging.py3728 def utcoffset(self, dt): member in UTC
3731 dst = utcoffset
/third_party/python/Lib/
Ddatetime.py227 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/
Dtzinfo_examples.py33 def utcoffset(self, dt): member in LocalTimezone
127 def utcoffset(self, dt): member in USTimeZone
/third_party/python/Doc/library/
Ddatetime.rst171 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/
Dtest_utils.py14 utcoffset = datetime.timedelta(hours=-7) variable in DateTimeTests
15 tz = datetime.timezone(utcoffset)
Dtest_headerregistry.py173 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.py105 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/
D3.7.0rc1.rst55 Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d)
D3.6.6rc1.rst132 Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d)
D3.8.0a1.rst4229 Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d)
/third_party/python/Modules/
D_zoneinfo.c138 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/
Dtest_constructor.py221 def utcoffset(self, dt): member in _make_objects.FixedOffset
/third_party/protobuf/python/google/protobuf/internal/
Dwell_known_types_test.py269 def utcoffset(self, _): member in TimeUtilTest.testDatetimeConversionWithTimezone.TZ
/third_party/python/Misc/
DHISTORY14221 ``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