Searched refs:dt_utc (Results 1 – 2 of 2) sorted by relevance
/external/python/dateutil/dateutil/tz/ |
D | _common.py | 175 def _fold_status(self, dt_utc, dt_wall): argument 193 delta_wall = dt_wall - dt_utc 194 _fold = int(delta_wall == (dt_utc.utcoffset() - dt_utc.dst())) 335 dt_utc = dt.replace(tzinfo=None) 337 isdst = self._naive_isdst(dt_utc, utc_transitions)
|
/external/python/cpython3/Lib/test/ |
D | datetimetester.py | 2530 dt_utc = dt.replace(tzinfo=timezone(timedelta(hours=-4), 'EDT')) 2531 self.assertEqual(dt.astimezone(), dt_utc) # naive 5720 dt_utc = datetime(2000, 2, 4, 5, tzinfo=timezone.utc) 5722 self.assertEqual(dt1.astimezone(timezone.utc), dt_utc)
|