/external/python/dateutil/dateutil/tz/ |
D | _common.py | 138 def fromutc(self, dt): function 146 return fromutc 245 def fromutc(self, dt): member in _tzinfo 319 def fromutc(self, dt): member in tzrangebase
|
D | tz.py | 101 def fromutc(self, dt): member in tzutc 159 def fromutc(self, dt): member in tzoffset 737 def fromutc(self, dt): member in tzfile
|
/external/python/cpython3/Doc/includes/ |
D | tzinfo_examples.py | 23 def fromutc(self, dt): member in LocalTimezone 154 def fromutc(self, dt): member in USTimeZone
|
/external/python/cpython3/Lib/test/ |
D | datetimetester.py | 237 t = tz.fromutc(u) 330 timezone.utc.fromutc(self.DT) 332 timezone.utc.fromutc('not datetime') 335 local = tz.fromutc(utctime) 4994 self.assertRaises(TypeError, Eastern.fromutc) # not enough args 4996 self.assertRaises(ValueError, Eastern.fromutc, now) # wrong tzinfo 4998 enow = Eastern.fromutc(now) # doesn't blow up 5000 self.assertRaises(TypeError, Eastern.fromutc, now, now) # too many args 5001 self.assertRaises(TypeError, Eastern.fromutc, date.today()) # wrong type 5005 def fromutc(self, dt): member in TestTimezoneConversions.test_fromutc.FauxUSTimeZone [all …]
|
/external/python/cpython2/Doc/library/ |
D | datetime.rst | 669 result is equivalent to ``tz.fromutc(datetime.utcnow().replace(tzinfo=tz))``. 690 ``tz.fromutc(datetime.utcfromtimestamp(timestamp).replace(tzinfo=tz))``. 928 Note that the default :meth:`tzinfo.fromutc` method can be overridden in a 938 return tz.fromutc(utc) 1412 should be set, and :meth:`tzinfo.fromutc` calls :meth:`dst` to account for 1427 :meth:`tzinfo.fromutc` to work correctly with :meth:`astimezone` regardless. 1486 .. method:: tzinfo.fromutc(self, dt) 1491 of :meth:`fromutc` is to adjust the date and time data, returning an 1495 :meth:`fromutc` implementation without problems. It's strong enough to handle 1498 different years. An example of a time zone the default :meth:`fromutc` [all …]
|
/external/python/cpython3/Doc/library/ |
D | datetime.rst | 1259 Note that the default :meth:`tzinfo.fromutc` method can be overridden in a 1269 return tz.fromutc(utc) 1595 def fromutc(self, dt): 1598 raise TypeError("fromutc() requires a datetime argument") 1602 # A custom implementation is required for fromutc as 1991 should be set, and :meth:`tzinfo.fromutc` calls :meth:`dst` to account for 2006 :meth:`tzinfo.fromutc` to work correctly with :meth:`astimezone` regardless. 2068 .. method:: tzinfo.fromutc(dt) 2073 of :meth:`fromutc` is to adjust the date and time data, returning an 2077 :meth:`fromutc` implementation without problems. It's strong enough to handle [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_datetime.py | 3303 self.assertRaises(TypeError, Eastern.fromutc) # not enough args 3305 self.assertRaises(ValueError, Eastern.fromutc, now) # wrong tzinfo 3307 enow = Eastern.fromutc(now) # doesn't blow up 3309 self.assertRaises(TypeError, Eastern.fromutc, now, now) # too many args 3310 self.assertRaises(TypeError, Eastern.fromutc, date.today()) # wrong type 3314 def fromutc(self, dt): member in TestTimezoneConversions.test_fromutc.FauxUSTimeZone 3329 got = Eastern.fromutc(start) 3333 got = FEastern.fromutc(fstart) 3348 got = Eastern.fromutc(start) 3352 got = FEastern.fromutc(fstart)
|
/external/python/cpython3/Lib/ |
D | datetime.py | 1168 def fromutc(self, dt): member in tzinfo 1708 result = tz.fromutc(result) 1914 return tz.fromutc(utc) 2300 def fromutc(self, dt): member in timezone
|
/external/python/cpython3/Lib/zoneinfo/ |
D | _zoneinfo.py | 114 def fromutc(self, dt): member in ZoneInfo
|
/external/python/cpython3/Lib/test/test_zoneinfo/ |
D | test_zoneinfo.py | 269 zone.fromutc(val) 452 dt_fromutc = zi.fromutc(dt)
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.1rc1.rst | 580 Default implementation of tzinfo.fromutc() was returning wrong results in
|
D | 3.6.0a1.rst | 2808 Default implementation of tzinfo.fromutc() was returning wrong results in
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 143 _Py_IDENTIFIER(fromutc);
|
/external/python/cpython2/Misc/ |
D | HISTORY | 4675 A new method tzinfo.fromutc(dt) can be overridden in tzinfo subclasses 4677 a local time. The default astimezone() implementation calls fromutc() 4679 fromutc(). It's expected that the default fromutc() implementation will 4681 creativity of political time zone fiddling appears unbounded -- fromutc() 4691 tz.fromutc(datetime.utcnow().replace(tzinfo=utc))
|
/external/python/cpython3/Misc/ |
D | HISTORY | 365 - Issue #23600: Default implementation of tzinfo.fromutc() was returning 22059 A new method tzinfo.fromutc(dt) can be overridden in tzinfo subclasses 22061 a local time. The default astimezone() implementation calls fromutc() 22063 fromutc(). It's expected that the default fromutc() implementation will 22065 creativity of political time zone fiddling appears unbounded -- fromutc() 22075 tz.fromutc(datetime.utcnow().replace(tzinfo=utc))
|