Home
last modified time | relevance | path

Searched refs:fromutc (Results 1 – 13 of 13) sorted by relevance

/external/python/dateutil/dateutil/tz/
D_common.py134 def fromutc(self, dt): function
142 return fromutc
241 def fromutc(self, dt): member in _tzinfo
315 def fromutc(self, dt): member in tzrangebase
Dtz.py96 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/
Dtzinfo_examples.py23 def fromutc(self, dt): member in LocalTimezone
154 def fromutc(self, dt): member in USTimeZone
/external/python/cpython3/Lib/test/
Ddatetimetester.py231 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/
Ddatetime.rst669 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/
Ddatetime.rst744 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/
Dtest_datetime.py3303 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/
Ddatetime.py1115 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/
D3.5.1rc1.rst580 Default implementation of tzinfo.fromutc() was returning wrong results in
D3.6.0a1.rst2809 Default implementation of tzinfo.fromutc() was returning wrong results in
/external/python/cpython3/Modules/
D_datetimemodule.c126 _Py_IDENTIFIER(fromutc);
/external/python/cpython2/Misc/
DHISTORY4675 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/
DHISTORY365 - 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))