Home
last modified time | relevance | path

Searched refs:utcoffset (Results 1 – 25 of 33) 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/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/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/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/cpython3/Lib/test/
Ddatetimetester.py120 def utcoffset(self, dt): member in FixedOffset
136 def utcoffset(self, datetime_module): member in _TZInfo
145 dt1.utcoffset()
154 self.assertRaises(NotImplementedError, useless.utcoffset, dt)
168 self.assertRaises(NotImplementedError, ne.utcoffset, dt)
175 self.assertEqual(fo.utcoffset(dt), timedelta(minutes=3))
201 self.assertEqual(orig.utcoffset(None), offset)
208 self.assertEqual(derived.utcoffset(None), offset)
219 def utcoffset(self, dt): member in TestTZInfo.test_issue23600.UKSummerTime
231 self.assertEqual(t - t.utcoffset(), u)
[all …]
/external/python/cpython3/Lib/
Ddatetime.py222 offset = object.utcoffset()
1152 def utcoffset(self, dt): member in tzinfo
1172 dtoff = dt.utcoffset()
1348 myoff = self.utcoffset()
1349 otoff = other.utcoffset()
1374 tzoff = t.utcoffset()
1392 off = self.utcoffset()
1464 def utcoffset(self): member in time
1469 offset = self._tzinfo.utcoffset(None)
1798 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.rst167 2. ``d.tzinfo.utcoffset(d)`` does not return ``None``
174 2. ``t.tzinfo.utcoffset(None)`` does not return ``None``.
1159 result is ``(a.replace(tzinfo=None) - a.utcoffset()) - (b.replace(tzinfo=None)
1160 - b.utcoffset())`` except that the implementation never overflows.
1174 offsets (obtained from ``self.utcoffset()``).
1237 :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. If *self*
1248 ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will have
1249 the same date and time data as ``dt - dt.utcoffset()``.
1264 utc = (self - self.utcoffset()).replace(tzinfo=tz)
1276 .. method:: datetime.utcoffset()
[all …]
/external/fonttools/Lib/fontTools/ufoLib/
Dutils.py24 def utcoffset(self, dt): member in UTC
/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.py172 utcoffset = datetime.timedelta(hours=-7) variable in TestDateHeader
173 tz = datetime.timezone(utcoffset)
180 self.assertEqual(h.datetime.utcoffset(), self.utcoffset)
/external/python/pyasn1/tests/type/
Dtest_useful.py28 def utcoffset(self, dt): member in FixedOffset
/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/cryptography/src/cryptography/x509/
Dbase.py37 offset = time.utcoffset()
/external/python/asn1crypto/tests/
Dtest_util.py119 self.assertEqual(delta_minus_5_42, util.timezone(delta_minus_5_42).utcoffset(None))
/external/python/apitools/apitools/base/py/
Dencoding_helper.py246 msg.microsecond, SpecialTZInfo(msg.tzinfo.utcoffset(0)))
/external/autotest/server/site_tests/tast/
Dtast_unittest.py730 assert(not t.utcoffset())

12