Home
last modified time | relevance | path

Searched refs:dt_utc (Results 1 – 4 of 4) sorted by relevance

/external/python/dateutil/dateutil/tz/
D_common.py179 def _fold_status(self, dt_utc, dt_wall): argument
197 delta_wall = dt_wall - dt_utc
198 _fold = int(delta_wall == (dt_utc.utcoffset() - dt_utc.dst()))
339 dt_utc = dt.replace(tzinfo=None)
341 isdst = self._naive_isdst(dt_utc, utc_transitions)
/external/python/cpython3/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py371 dt_utc = zt.transition_utc
372 dt_before_utc = dt_utc - timedelta(seconds=1)
373 dt_after_utc = dt_utc + timedelta(seconds=1)
376 self.assertEqual(dt_before.fold, 0, (dt_before, dt_utc))
379 self.assertEqual(dt_after.fold, 1, (dt_after, dt_utc))
580 for dt_local, dt_utc in dts:
582 dt_actual = dt_utc.astimezone(zi)
586 self.assertEqual(dt_utc_actual, dt_utc)
755 dt_utc = naive_dt_utc.replace(tzinfo=timezone.utc)
757 self.assertEqual(dt_utc.astimezone(zi), dt)
[all …]
/external/python/cpython3/Doc/library/
Dzoneinfo.rst78 >>> dt_utc = datetime(2020, 11, 1, 8, tzinfo=timezone.utc)
81 >>> print(dt_utc.astimezone(LOS_ANGELES))
85 >>> print((dt_utc + timedelta(hours=1)).astimezone(LOS_ANGELES))
/external/python/cpython3/Lib/test/
Ddatetimetester.py2753 dt_utc = dt.replace(tzinfo=timezone(timedelta(hours=-4), 'EDT'))
2754 self.assertEqual(dt.astimezone(), dt_utc) # naive
5981 dt_utc = datetime(2000, 2, 4, 5, tzinfo=timezone.utc)
5983 self.assertEqual(dt1.astimezone(timezone.utc), dt_utc)