Searched refs:timetuple (Results 1 - 25 of 26) sorted by relevance

12

/external/python/cpython2/Doc/includes/sqlite3/
H A Dadapter_datetime.py5 return time.mktime(ts.timetuple())
/external/python/cpython3/Doc/includes/sqlite3/
H A Dadapter_datetime.py6 return time.mktime(ts.timetuple())
/external/python/cpython3/Lib/email/
H A Dutils.py129 def _format_timetuple_and_zone(timetuple, zone):
131 ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'][timetuple[6]],
132 timetuple[2],
134 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][timetuple[1] - 1],
135 timetuple[0], timetuple[3], timetuple[4], timetuple[5],
174 now = dt.timetuple()
363 # We have a naive datetime. Convert to a (localtime) timetuple an
[all...]
/external/autotest/client/common_lib/
H A Dtime_utils.py98 return time.mktime(value.timetuple()) + 0.000001 * value.microsecond
/external/autotest/server/cros/dynamic_suite/
H A Djob_status.py306 begin_time_str, time_utils.TIME_FMT).timetuple()))
313 end_time_str, time_utils.TIME_FMT).timetuple()))
/external/autotest/tko/
H A Djob_serializer_unittest.py224 t = mktime(dTime.timetuple()) + 1e-6 * dTime.microsecond
369 t = mktime(dTime.timetuple()) + 1e-6 * dTime.microsecond
373 t1 = mktime(sTime.timetuple()) + 1e-6 * sTime.microsecond
H A Djob_serializer.py414 t = mktime(t.timetuple()) + 1e-6 * t.microsecond
/external/autotest/client/tools/
H A Dhtml_report.py1425 epoch_sec = time.mktime(t.timetuple())
/external/python/cpython3/Lib/xmlrpc/
H A Dclient.py313 elif hasattr(other, "timetuple"):
314 s = self.timetuple()
315 o = other.timetuple()
344 def timetuple(self): member in class:DateTime
/external/python/cpython3/Lib/
H A Ddatetime.py177 def _wrap_strftime(object, format, timetuple):
232 return _time.strftime(newformat, timetuple)
676 timetuple()
768 return _wrap_strftime(self, fmt, self.timetuple())
809 def timetuple(self): member in class:date
1252 timetuple = (1900, 1, 1,
1255 return _wrap_strftime(self, fmt, timetuple)
1499 def timetuple(self): member in class:datetime
/external/python/cpython2/Lib/test/
H A Dtest_datetime.py943 t = d.timetuple()
947 t = d.timetuple()
952 t = d.timetuple()
1042 # other object has a timetuple attr. This gives the other object a
1045 def timetuple(self): member in class:TestDate.test_mixed_compare.Comparable
1243 # self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))
1247 self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))
1561 self.assertEqual(t.timetuple(), (2004, 12, 31, 6, 22, 33, 4, 366, -1))
1562 self.assertEqual(t.timetuple(),
1568 tt = t.timetuple()
[all...]
H A Dtest_strptime.py459 strp_output[7], dt_date.timetuple()[7]))
H A Dtest_xmlrpc.py79 dt = xmlrpclib.DateTime(now.timetuple())
/external/python/cpython2/Lib/
H A Dxmlrpclib.py399 elif hasattr(other, "timetuple"):
400 s = self.timetuple()
401 o = other.timetuple()
434 def timetuple(self): member in class:DateTime
/external/python/cpython3/Lib/test/
H A Ddatetimetester.py1304 t = d.timetuple()
1308 t = d.timetuple()
1313 t = d.timetuple()
1648 # self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))
1652 self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))
2119 self.assertEqual(t.timetuple(), (2004, 12, 31, 6, 22, 33, 4, 366, -1))
2120 self.assertEqual(t.timetuple(),
2126 tt = t.timetuple()
3341 t = d.timetuple()
3353 self.assertRaises(TypeError, cls(1, 1, 1, tzinfo=DST("x")).timetuple)
[all...]
H A Dtest_xmlrpc.py425 dtime = xmlrpclib.DateTime(now.timetuple())
438 dtime_then = xmlrpclib.DateTime(then.timetuple())
444 dtuple = now.timetuple()
H A Dtest_strptime.py504 dt_date.timetuple()[7])
/external/autotest/scheduler/
H A Dagent_task.py562 return 'job_queued', int(time.mktime(job.created_on.timetuple()))
H A Dmonitor_db.py1431 t = int(time.mktime(queue_entry.aborted_on.timetuple()))
/external/python/cpython2/Modules/
H A Ddatetimemodule.c1163 PyObject *timetuple, PyObject *tzinfoarg)
1183 assert(object && format && timetuple);
1196 PyObject *pyyear = PySequence_GetItem(timetuple, 0);
1350 newfmt, timetuple);
2524 * timetuple() method appropriate to self's class.
2536 tuple = PyObject_CallMethod((PyObject *)self, "timetuple", "()");
2618 else if (PyObject_HasAttrString(other, "timetuple")) {
2738 {"timetuple", (PyCFunction)date_timetuple, METH_NOARGS,
3314 * timetuple. The year is forced to (the otherwise nonsensical)
4277 /* If other has a "timetuple" att
1162 wrap_strftime(PyObject *object, const char *format, size_t format_len, PyObject *timetuple, PyObject *tzinfoarg) argument
[all...]
/external/v8/tools/release/
H A Dcommon_includes.py278 return time.mktime(datetime.datetime.utcnow().timetuple())
/external/python/cpython3/Modules/
H A D_datetimemodule.c1219 wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple, argument
1241 assert(object && format && timetuple);
1369 format, timetuple, NULL);
2726 * timetuple() method appropriate to self's class.
2731 _Py_IDENTIFIER(timetuple);
2920 {"timetuple", (PyCFunction)date_timetuple, METH_NOARGS,
3762 * timetuple. The year is forced to (the otherwise nonsensical)
5507 {"timetuple", (PyCFunction)datetime_timetuple, METH_NOARGS,
/external/python/cpython2/Lib/email/test/
H A Dtest_email.py1147 timetuple = time.localtime(now)
1148 if timetuple[-1] == 0:
H A Dtest_email_renamed.py1082 timetuple = time.localtime(now)
1083 if timetuple[-1] == 0:
/external/python/cpython3/Lib/test/test_email/
H A Dtest_email.py1726 timetuple = time.localtime(now)
1727 if timetuple[-1] == 0:

Completed in 537 milliseconds

12