/external/python/dateutil/dateutil/tz/ |
D | _common.py | 134 def fromutc(self, dt): function 142 return fromutc 241 def fromutc(self, dt): member in _tzinfo 315 def fromutc(self, dt): member in tzrangebase
|
D | tz.py | 96 def fromutc(self, dt): member in tzutc 153 def fromutc(self, dt): member in tzoffset 677 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 | 231 t = tz.fromutc(u) 324 timezone.utc.fromutc(self.DT) 326 timezone.utc.fromutc('not datetime') 329 local = tz.fromutc(utctime) 4736 self.assertRaises(TypeError, Eastern.fromutc) # not enough args 4738 self.assertRaises(ValueError, Eastern.fromutc, now) # wrong tzinfo 4740 enow = Eastern.fromutc(now) # doesn't blow up 4742 self.assertRaises(TypeError, Eastern.fromutc, now, now) # too many args 4743 self.assertRaises(TypeError, Eastern.fromutc, date.today()) # wrong type 4747 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 | 744 result is equivalent to ``tz.fromutc(datetime.utcnow().replace(tzinfo=tz))``. 765 ``tz.fromutc(datetime.utcfromtimestamp(timestamp).replace(tzinfo=tz))``. 1080 Note that the default :meth:`tzinfo.fromutc` method can be overridden in a 1090 return tz.fromutc(utc) 1732 should be set, and :meth:`tzinfo.fromutc` calls :meth:`dst` to account for 1747 :meth:`tzinfo.fromutc` to work correctly with :meth:`astimezone` regardless. 1809 .. method:: tzinfo.fromutc(dt) 1814 of :meth:`fromutc` is to adjust the date and time data, returning an 1818 :meth:`fromutc` implementation without problems. It's strong enough to handle 1821 different years. An example of a time zone the default :meth:`fromutc` [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 | 1115 def fromutc(self, dt): member in tzinfo 1623 result = tz.fromutc(result) 1836 return tz.fromutc(utc) 2220 def fromutc(self, dt): member in timezone
|
/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 | 2809 Default implementation of tzinfo.fromutc() was returning wrong results in
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 126 _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))
|