Home
last modified time | relevance | path

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

12

/external/python/dateutil/dateutil/test/
Dtest_tz.py167 return dt.tzname(), dt.utcoffset(), dt.dst()
213 self.assertEqual(t0_syd0.utcoffset(), timedelta(hours=11))
214 self.assertEqual(t1_syd1.utcoffset(), timedelta(hours=10))
235 self.assertEqual(t0.utcoffset(), timedelta(hours=10))
236 self.assertEqual(t1.utcoffset(), timedelta(hours=11))
258 self.assertEqual(t0_tor.utcoffset(), timedelta(hours=-4.0))
259 self.assertEqual(t1_tor.utcoffset(), timedelta(hours=-5.0))
281 self.assertEqual(t0.utcoffset(), timedelta(hours=-5.0))
282 self.assertEqual(t1.utcoffset(), timedelta(hours=-4.0))
303 self.assertEqual(t0.utcoffset(), timedelta(hours=1))
[all …]
/external/python/dateutil/dateutil/tz/
D_common.py174 same_offset = wall_0.utcoffset() == wall_1.utcoffset()
198 _fold = int(delta_wall == (dt_utc.utcoffset() - dt_utc.dst()))
222 dtoff = dt.utcoffset()
292 def utcoffset(self, dt): member in tzrangebase
330 return dt + self.utcoffset(dt)
Dtz.py74 def utcoffset(self, dt): member in tzutc
148 def utcoffset(self, dt): member in tzoffset
212 def utcoffset(self, dt): member in tzlocal
815 def utcoffset(self, dt): member in tzfile
1224 def utcoffset(self, dt): member in _tzicalvtz
1744 same_offset = wall_0.utcoffset() == wall_1.utcoffset()
1788 curr_offset = (dt + datetime.timedelta(hours=24)).utcoffset()
1789 old_offset = (dt - datetime.timedelta(hours=24)).utcoffset()
/external/python/cpython3/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 …]
/external/python/cpython2/Doc/includes/
Dtzinfo-examples.py11 def utcoffset(self, dt): member in UTC
33 def utcoffset(self, dt): member in FixedOffset
56 def utcoffset(self, dt): member in LocalTimezone
133 def utcoffset(self, dt): member in USTimeZone
/external/python/cpython2/Lib/test/
Dtest_datetime.py54 def utcoffset(self, dt): member in FixedOffset
74 self.assertRaises(NotImplementedError, useless.utcoffset, dt)
88 self.assertRaises(NotImplementedError, ne.utcoffset, dt)
95 self.assertEqual(fo.utcoffset(dt), timedelta(minutes=3))
116 self.assertEqual(orig.utcoffset(None), offset)
123 self.assertEqual(derived.utcoffset(None), offset)
1689 def utcoffset(self, dt): return None member in TestDateTime.test_astimezone.Bogus
1695 def utcoffset(self, dt): return timedelta(0) member in TestDateTime.test_astimezone.AlsoBogus
2044 def utcoffset(self, dt): member in TZInfoBase.test_argument_passing.introspective
2046 dst = utcoffset
[all …]
/external/python/apitools/apitools/base/protorpclite/
Dmessage_types.py103 value.tzinfo.utcoffset(value))
114 utc_offset = value.tzinfo.utcoffset(value)
117 util.total_seconds(value.tzinfo.utcoffset(value)) / 60)
Dutil.py219 def utcoffset(self, _): member in TimeZoneOffset
Dutil_test.py228 epoch = time_zone.utcoffset(datetime.datetime.utcfromtimestamp(0))
/external/python/cpython3/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 …]
/external/python/cpython3/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 …]
/external/python/pyasn1/pyasn1/type/
Duseful.py50 def utcoffset(self, dt): member in TimeMixIn.FixedOffset
147 if dt.utcoffset():
148 seconds = dt.utcoffset().seconds
/external/python/asn1crypto/asn1crypto/
Dutil.py185 def utcoffset(self, dt): member in timezone
282 def utcoffset(self, dt): member in _UtcWithDst
609 def utcoffset(self): member in extended_datetime
615 return self._y2k.utcoffset()
667 return s + _format_offset(self.utcoffset())
/external/python/cpython2/Doc/library/
Ddatetime.rst118 ``d.tzinfo.utcoffset(d)`` does not return ``None``. If ``d.tzinfo`` is
119 ``None``, or if ``d.tzinfo`` is not ``None`` but ``d.tzinfo.utcoffset(d)``
121 if ``t.tzinfo`` is not ``None`` and ``t.tzinfo.utcoffset(None)`` does not return
847 result is ``(a.replace(tzinfo=None) - a.utcoffset()) - (b.replace(tzinfo=None)
848 - b.utcoffset())`` except that the implementation never overflows.
859 offsets (obtained from ``self.utcoffset()``).
910 :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. *self* must
911 be aware (``self.tzinfo`` must not be ``None``, and ``self.utcoffset()`` must
917 ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will usually have
918 the same date and time data as ``dt - dt.utcoffset()``. The discussion
[all …]
/external/python/cpython3/Doc/includes/
Dtzinfo_examples.py33 def utcoffset(self, dt): member in LocalTimezone
127 def utcoffset(self, dt): member in USTimeZone
/external/python/dateutil/dateutil/test/property/
Dtest_isoparse_prop.py21 assume(dt.utcoffset().total_seconds() % 60 == 0)
/external/python/cpython3/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 …]
/external/python/cpython3/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)
/external/tflite-support/tensorflow_lite_support/tools/ci_build/
Dupdate_version.py68 def utcoffset(self, dt): member in CustomTimeZone
/external/python/cpython3/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)
/external/python/pyasn1/tests/type/
Dtest_useful.py28 def utcoffset(self, dt): member in FixedOffset
/external/python/python-api-core/google/api_core/
Ddatetime_helpers.py177 value = value.replace(tzinfo=None) - value.utcoffset()
/external/python/cpython3/Misc/NEWS.d/
D3.7.0rc1.rst55 Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d)
/external/python/cpython3/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()

12