Home
last modified time | relevance | path

Searched refs:fromutc (Results 1 - 6 of 6) sorted by relevance

/third_party/python/Doc/includes/
H A Dtzinfo_examples.py23 def fromutc(self, dt): member in LocalTimezone
134 # fromutc() implementation (called by the default astimezone()
154 def fromutc(self, dt): member in USTimeZone
/third_party/python/Lib/test/
H A Ddatetimetester.py247 t = tz.fromutc(u)
341 timezone.utc.fromutc(self.DT)
343 timezone.utc.fromutc('not datetime')
346 local = tz.fromutc(utctime)
5299 self.assertRaises(TypeError, Eastern.fromutc) # not enough args
5301 self.assertRaises(ValueError, Eastern.fromutc, now) # wrong tzinfo
5303 enow = Eastern.fromutc(now) # doesn't blow up
5305 self.assertRaises(TypeError, Eastern.fromutc, now, now) # too many args
5306 self.assertRaises(TypeError, Eastern.fromutc, date.today()) # wrong type
5310 def fromutc(sel member in TestTimezoneConversions.test_fromutc.FauxUSTimeZone
5441 def fromutc(self, dt): global() member in tzinfo2
5577 def fromutc(self, dt): global() member in Europe_Vilnius_1941
5943 def fromutc(self, dt): global() member in ZoneInfo
[all...]
/third_party/python/Lib/
H A Ddatetime.py1246 def fromutc(self, dt): member in tzinfo
1250 raise TypeError("fromutc() requires a datetime argument")
1256 raise ValueError("fromutc() requires a non-None utcoffset() "
1263 raise ValueError("fromutc() requires a non-None dst() result")
1269 raise ValueError("fromutc(): dt.dst gave inconsistent "
1783 result = tz.fromutc(result)
1995 return tz.fromutc(utc)
2381 def fromutc(self, dt): member in timezone
2384 raise ValueError("fromutc: dt.tzinfo "
2387 raise TypeError("fromutc() argumen
[all...]
/third_party/python/Lib/zoneinfo/
H A D_zoneinfo.py114 def fromutc(self, dt): member in ZoneInfo
118 raise TypeError("fromutc() requires a datetime argument")
/third_party/python/Lib/test/test_zoneinfo/
H A Dtest_zoneinfo.py269 zone.fromutc(val)
412 new datetime; this test ensures that the input datetime to fromutc
452 dt_fromutc = zi.fromutc(dt)
581 with self.subTest(name="fromutc", dt=dt_local):
/third_party/python/Modules/
H A D_datetimemodule.c145 _Py_IDENTIFIER(fromutc); variable
3742 "fromutc: argument must be a datetime"); in tzinfo_fromutc()
3746 PyErr_SetString(PyExc_ValueError, "fromutc: dt.tzinfo " in tzinfo_fromutc()
3755 PyErr_SetString(PyExc_ValueError, "fromutc: non-None " in tzinfo_fromutc()
3764 PyErr_SetString(PyExc_ValueError, "fromutc: non-None " in tzinfo_fromutc()
3794 PyErr_SetString(PyExc_ValueError, "fromutc: tz.dst() gave " in tzinfo_fromutc()
3853 {"fromutc", (PyCFunction)tzinfo_fromutc, METH_O,
4058 "fromutc: argument must be a datetime"); in timezone_fromutc()
4062 PyErr_SetString(PyExc_ValueError, "fromutc: dt.tzinfo " in timezone_fromutc()
4089 {"fromutc", (PyCFunctio
[all...]

Completed in 22 milliseconds