Home
last modified time | relevance | path

Searched refs:timetuple (Results 1 – 25 of 36) sorted by relevance

12

/external/python/cpython3/Lib/email/
Dutils.py117 def _format_timetuple_and_zone(timetuple, zone): argument
119 ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'][timetuple[6]],
120 timetuple[2],
122 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][timetuple[1] - 1],
123 timetuple[0], timetuple[3], timetuple[4], timetuple[5],
162 now = dt.timetuple()
360 tm = dt.timetuple()[:-1] + (isdst,)
/external/python/setuptools/pkg_resources/tests/
Dtest_pkg_resources.py35 return time.mktime(dt.timetuple())
59 zip_info.date_time = cls.ref_time.timetuple()
63 zip_info.date_time = cls.ref_time.timetuple()
67 zip_info.date_time = cls.ref_time.timetuple()
71 zip_info.date_time = cls.ref_time.timetuple()
/external/autotest/venv/lucifer/
Djobx.py131 int(time.mktime(job.created_on.timetuple()))
149 aborted_on = int(time.mktime(ahqe.aborted_on.timetuple()))
/external/python/cpython2/Doc/includes/sqlite3/
Dadapter_datetime.py5 return time.mktime(ts.timetuple())
/external/python/cpython3/Doc/includes/sqlite3/
Dadapter_datetime.py6 return time.mktime(ts.timetuple())
/external/autotest/tko/
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
Djob_serializer.py415 t = mktime(t.timetuple()) + 1e-6 * t.microsecond
/external/autotest/server/cros/dynamic_suite/
Djob_status.py282 begin_time_str, time_utils.TIME_FMT).timetuple()))
289 end_time_str, time_utils.TIME_FMT).timetuple()))
/external/autotest/client/common_lib/
Dtime_utils.py98 return time.mktime(value.timetuple()) + 0.000001 * value.microsecond
/external/python/cpython2/Doc/library/
Ddatetime.rst464 :meth:`timetuple` attribute. This hook gives other kinds of date objects a
482 .. method:: date.timetuple()
485 The hours, minutes and seconds are 0, and the DST flag is -1. ``d.timetuple()``
547 ``time.ctime(time.mktime(d.timetuple()))`` on platforms where the native C
593 >>> t = d.timetuple()
867 :meth:`timetuple` attribute. This hook gives other kinds of date objects a
964 .. method:: datetime.timetuple()
967 ``d.timetuple()`` is equivalent to ``time.struct_time((d.year, d.month, d.day,
980 ``d.timetuple()`` except that :attr:`tm_isdst` is forced to 0 regardless of what
1048 equivalent to ``time.ctime(time.mktime(d.timetuple()))`` on platforms where the
[all …]
/external/python/cpython3/Lib/
Ddatetime.py196 def _wrap_strftime(object, format, timetuple): argument
257 return _time.strftime(newformat, timetuple)
907 return _wrap_strftime(self, fmt, self.timetuple())
948 def timetuple(self): member in date
1401 timetuple = (1900, 1, 1,
1404 return _wrap_strftime(self, fmt, timetuple)
1691 def timetuple(self): member in datetime
/external/python/cpython2/Lib/test/
Dtest_datetime.py983 t = d.timetuple()
987 t = d.timetuple()
992 t = d.timetuple()
1085 def timetuple(self): member in TestDate.test_mixed_compare.Comparable
1287 self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))
1601 self.assertEqual(t.timetuple(), (2004, 12, 31, 6, 22, 33, 4, 366, -1))
1602 self.assertEqual(t.timetuple(),
1608 tt = t.timetuple()
2774 t = d.timetuple()
2786 self.assertRaises(TypeError, cls(1, 1, 1, tzinfo=DST("x")).timetuple)
[all …]
Dtest_strptime.py459 strp_output[7], dt_date.timetuple()[7]))
/external/python/dateutil/dateutil/tz/
D_common.py119 args = dt.timetuple()[:6]
/external/python/cpython3/Lib/xmlrpc/
Dclient.py314 s = self.timetuple()
315 o = other.timetuple()
344 def timetuple(self): member in DateTime
/external/python/cpython3/Doc/library/
Ddatetime.rst533 :meth:`timetuple` attribute. This hook gives other kinds of date objects a
551 .. method:: date.timetuple()
554 The hours, minutes and seconds are 0, and the DST flag is -1. ``d.timetuple()``
616 ``time.ctime(time.mktime(d.timetuple()))`` on platforms where the native C
664 >>> t = d.timetuple()
1007 :meth:`timetuple` attribute. This hook gives other kinds of date objects a
1127 .. method:: datetime.timetuple()
1130 ``d.timetuple()`` is equivalent to ``time.struct_time((d.year, d.month, d.day,
1143 ``d.timetuple()`` except that :attr:`tm_isdst` is forced to 0 regardless of what
1279 equivalent to ``time.ctime(time.mktime(d.timetuple()))`` on platforms where the
[all …]
/external/python/cpython2/Lib/
Dxmlrpclib.py400 s = self.timetuple()
401 o = other.timetuple()
434 def timetuple(self): member in DateTime
/external/autotest/client/cros/update_engine/
Dupdate_engine_util.py372 return time.mktime(log_datetime.timetuple())
/external/autotest/client/tools/
Dhtml_report.py1425 epoch_sec = time.mktime(t.timetuple())
/external/python/cpython3/Lib/test/
Ddatetimetester.py1419 t = d.timetuple()
1423 t = d.timetuple()
1428 t = d.timetuple()
1925 self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))
2427 self.assertEqual(t.timetuple(), (2004, 12, 31, 6, 22, 33, 4, 366, -1))
2428 self.assertEqual(t.timetuple(),
2434 tt = t.timetuple()
4151 t = d.timetuple()
4163 self.assertRaises(TypeError, cls(1, 1, 1, tzinfo=DST("x")).timetuple)
4166 self.assertEqual(cls(1,1,1, tzinfo=DST(1439)).timetuple().tm_isdst, 1)
[all …]
Dtest_xmlrpc.py513 dtime = xmlrpclib.DateTime(now.timetuple())
526 dtime_then = xmlrpclib.DateTime(then.timetuple())
532 dtuple = now.timetuple()
/external/autotest/server/cros/power/
Dpower_telemetry_logger.py40 return time.mktime(ts.timetuple()) + ts.microsecond / 1e6
/external/autotest/scheduler/
Dmonitor_db.py1077 create_on = time.mktime(entry.job.created_on.timetuple())
1397 t = int(time.mktime(queue_entry.aborted_on.timetuple()))
Dagent_task.py562 return 'job_queued', int(time.mktime(job.created_on.timetuple()))
/external/python/dateutil/dateutil/
Drrule.py701 h, m, s = self._dtstart.timetuple()[3:6]
768 self._dtstart.timetuple()

12