/external/python/dateutil/dateutil/test/ |
D | test_tz.py | 204 t0_syd0 = t0_u.astimezone(SYD) 205 t1_syd1 = t1_u.astimezone(SYD) 226 t0 = t0_u.astimezone(SYD) 227 t1 = t1_u.astimezone(SYD) 248 t0_tor = t0_u.astimezone(TOR) 249 t1_tor = t1_u.astimezone(TOR) 271 t0 = t0_u.astimezone(TOR) 272 t1 = t1_u.astimezone(TOR) 294 t0 = t0_u.astimezone(LON) 295 t1 = t1_u.astimezone(LON) [all …]
|
D | test_parser.py | 825 assert dt.astimezone(tz.tzutc()) == dt_exp.astimezone(tz.tzutc()) 838 assert dt.astimezone(tz.tzutc()) == dt_exp.astimezone(tz.tzutc())
|
/external/python/cpython3/Lib/email/ |
D | utils.py | 151 dt = dt.astimezone() 346 return datetime.datetime.now(datetime.timezone.utc).astimezone() 348 return dt.astimezone()
|
/external/python/cpython3/Lib/test/ |
D | datetimetester.py | 2754 self.assertEqual(dt.astimezone(), dt_utc) # naive 2755 self.assertRaises(TypeError, dt.astimezone, f, f) # too many args 2756 self.assertRaises(TypeError, dt.astimezone, dt) # arg wrong type 2758 self.assertEqual(dt.astimezone(f), dt_f) # naive 2759 self.assertEqual(dt.astimezone(tz=f), dt_f) # naive 2765 self.assertRaises(ValueError, dt.astimezone, bog) # naive 2766 self.assertEqual(dt.replace(tzinfo=bog).astimezone(f), dt_f) 2772 self.assertRaises(ValueError, dt.astimezone, alsobog) # also naive 2780 dt_broken.astimezone() 2833 base_d.astimezone(timezone.utc)), [all …]
|
D | test_logging.py | 3962 r.created = time.mktime(dt.astimezone(None).timetuple()) 3978 r.created = time.mktime(dt.astimezone(None).timetuple())
|
/external/python/cpython2/Lib/test/ |
D | test_datetime.py | 1682 self.assertRaises(TypeError, dt.astimezone) # not enough args 1683 self.assertRaises(TypeError, dt.astimezone, f, f) # too many args 1684 self.assertRaises(TypeError, dt.astimezone, dt) # arg wrong type 1685 self.assertRaises(ValueError, dt.astimezone, f) # naive 1686 self.assertRaises(ValueError, dt.astimezone, tz=f) # naive 1692 self.assertRaises(ValueError, dt.astimezone, bog) # naive 1698 self.assertRaises(ValueError, dt.astimezone, alsobog) # also naive 2694 now2 = utcnow.astimezone(weirdtz) 2928 self.assertRaises(ValueError, dt.astimezone, fnone) 2930 self.assertRaises(TypeError, dt.astimezone, None) [all …]
|
/external/autotest/client/common_lib/ |
D | time_utils.py | 126 utc_datetime = local_datetime.astimezone(tz=pytz.utc)
|
/external/python/cpython3/Tools/scripts/ |
D | diff.py | 17 return t.astimezone().isoformat()
|
/external/python/asn1crypto/asn1crypto/ |
D | util.py | 692 def astimezone(self, tz): member in extended_datetime 703 return extended_datetime.from_y2k(self._y2k.astimezone(tz))
|
D | core.py | 5011 value = value.astimezone(utc_with_dst) 5108 value = value.astimezone(utc_with_dst)
|
/external/python/cpython2/Doc/library/ |
D | datetime.rst | 903 .. method:: datetime.astimezone(tz) 914 If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no 917 ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will usually have 929 :class:`tzinfo` subclass to affect the result returned by :meth:`astimezone`. 930 Ignoring error cases, :meth:`astimezone` acts like:: 932 def astimezone(self, tz): 1161 >>> dt3 = dt2.astimezone(GMT2()) 1423 only on geographic location. The implementation of :meth:`datetime.astimezone` 1427 :meth:`tzinfo.fromutc` to work correctly with :meth:`astimezone` regardless. 1488 This is called from the default :class:`datetime.astimezone()` [all …]
|
/external/python/cpython3/Doc/library/ |
D | zoneinfo.rst | 37 method or :meth:`datetime.astimezone <datetime.datetime.astimezone>`:: 81 >>> print(dt_utc.astimezone(LOS_ANGELES)) 85 >>> print((dt_utc + timedelta(hours=1)).astimezone(LOS_ANGELES))
|
D | datetime.rst | 1233 .. method:: datetime.astimezone(tz=None) 1248 If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no 1251 ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will have 1260 :class:`tzinfo` subclass to affect the result returned by :meth:`astimezone`. 1261 Ignoring error cases, :meth:`astimezone` acts like:: 1263 def astimezone(self, tz): 1275 The :meth:`astimezone` method can now be called on naive instances that 1605 # See datetime.astimezone or fromtimestamp. 1635 >>> dt3 = dt2.astimezone(timezone.utc) 2002 only on geographic location. The implementation of :meth:`datetime.astimezone` [all …]
|
/external/python/cpython3/Lib/test/test_zoneinfo/ |
D | test_zoneinfo.py | 375 dt_before = dt_before_utc.astimezone(zi) 378 dt_after = dt_after_utc.astimezone(zi) 582 dt_actual = dt_utc.astimezone(zi) 585 dt_utc_actual = dt_local.astimezone(timezone.utc) 757 self.assertEqual(dt_utc.astimezone(zi), dt) 976 dt_act = dt_utc.astimezone(zi) 987 dt_act = dt_exp.astimezone(timezone.utc)
|
/external/oss-fuzz/infra/ |
D | build_specified_commit.py | 359 image['timestamp']['datetime']).astimezone(datetime.timezone.utc)
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.0rc1.rst | 56 returning None is now treated as naive by the astimezone() method.
|
D | 3.8.0a2.rst | 336 :meth:`datetime.datetime.astimezone` and alternate constructors like
|
D | 3.6.6rc1.rst | 133 returning None is now treated as naive by the astimezone() method.
|
D | 3.5.2rc1.rst | 905 Fixed a bug in datetime.astimezone() method.
|
D | 3.6.0a1.rst | 1423 Fixed a bug in datetime.astimezone() method.
|
/external/python/dateutil/docs/ |
D | examples.rst | 1240 >>> datetime.now(tzoffset("BRST", -10800)).astimezone(tzutc()) 1260 >>> datetime.now(tzlocal()).astimezone(tzoffset(None, 0)) 1319 >>> dt.astimezone(tz2).strftime('%X %x %Z') 1396 >>> datetime.now(tz).astimezone(tzutc())
|
/external/python/dateutil/dateutil/tz/ |
D | tz.py | 1698 dt_rt = dt.replace(tzinfo=tz).astimezone(tzutc()).astimezone(tz)
|
/external/python/cpython3/Lib/ |
D | imaplib.py | 1519 timezone.utc).astimezone()
|
D | datetime.py | 1891 def astimezone(self, tz=None): member in datetime
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.6.rst | 483 ... t = u.astimezone(Eastern)
|