Home
last modified time | relevance | path

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

/external/python/dateutil/dateutil/tz/
D_common.py138 def fromutc(self, dt): function
146 return fromutc
245 def fromutc(self, dt): member in _tzinfo
319 def fromutc(self, dt): member in tzrangebase
Dtz.py101 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/
Dtzinfo_examples.py23 def fromutc(self, dt): member in LocalTimezone
154 def fromutc(self, dt): member in USTimeZone
/external/python/cpython3/Lib/test/
Ddatetimetester.py237 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/
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.rst1259 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/
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.py1168 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.py114 def fromutc(self, dt): member in ZoneInfo
/external/python/cpython3/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py269 zone.fromutc(val)
452 dt_fromutc = zi.fromutc(dt)
/external/python/cpython3/Misc/NEWS.d/
D3.5.1rc1.rst580 Default implementation of tzinfo.fromutc() was returning wrong results in
D3.6.0a1.rst2808 Default implementation of tzinfo.fromutc() was returning wrong results in
/external/python/cpython3/Modules/
D_datetimemodule.c143 _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))