Searched defs:strftime (Results 1 - 7 of 7) sorted by relevance

/external/clang/utils/CIndex/
H A Dcompletion_logger_server.py4 from time import strftime namespace
33 f.write("\"time\": \"{0}\"".format(datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')))
/external/lisa/tools/analysis/
H A Druntime.py19 from time import gmtime, strftime namespace
/external/python/cpython3/Lib/
H A Ddatetime.py176 # Correctly substitute for %z and %Z escapes in strftime formats.
221 # strftime is going to have at this: escape %
232 return _time.strftime(newformat, timetuple)
681 strftime()
754 # easily done without using strftime() -- that's better too because
755 # strftime("%c", ...) is locale specific.
766 def strftime(self, fmt): member in class:date
767 "Format using strftime()."
774 return self.strftime(fmt)
1037 strftime()
1246 def strftime(self, fmt): member in class:time
[all...]
/external/python/cpython2/Lib/test/
H A Dtest_datetime.py865 self.assertEqual(t.strftime("m:%m d:%d y:%y"), "m:03 d:02 y:05")
866 self.assertEqual(t.strftime(""), "") # SF bug #761337
867 self.assertEqual(t.strftime('x'*1000), 'x'*1000) # SF bug #1556784
869 self.assertRaises(TypeError, t.strftime) # needs an arg
870 self.assertRaises(TypeError, t.strftime, "one", "two") # too many args
871 self.assertRaises(TypeError, t.strftime, 42) # arg wrong type
874 self.assertEqual(t.strftime(u"%m"), "03")
877 self.assertEqual(t.strftime("'%z' '%Z'"), "'' ''")
880 #self.assertRaises(ValueError, t.strftime, "%e")
881 #self.assertRaises(ValueError, t.strftime, "
910 def strftime(self, format_spec): member in class:TestDate.test_format.B
1220 def strftime(self, format_spec): member in class:TestDateTime.test_format.B
1874 def strftime(self, format_spec): member in class:TestTime.test_format.B
[all...]
/external/python/cpython3/Lib/test/
H A Ddatetimetester.py1219 self.assertEqual(t.strftime("m:%m d:%d y:%y"), "m:03 d:02 y:05")
1220 self.assertEqual(t.strftime(""), "") # SF bug #761337
1221 self.assertEqual(t.strftime('x'*1000), 'x'*1000) # SF bug #1556784
1223 self.assertRaises(TypeError, t.strftime) # needs an arg
1224 self.assertRaises(TypeError, t.strftime, "one", "two") # too many args
1225 self.assertRaises(TypeError, t.strftime, 42) # arg wrong type
1228 self.assertEqual(t.strftime("%m"), "03")
1231 self.assertEqual(t.strftime("'%z' '%Z'"), "'' ''")
1234 #self.assertRaises(ValueError, t.strftime, "%e")
1235 #self.assertRaises(ValueError, t.strftime, "
1266 def strftime(self, format_spec): member in class:TestDate.test_format.B
1625 def strftime(self, format_spec): member in class:TestDateTime.test_format.B
2471 def strftime(self, format_spec): member in class:TestTime.test_format.B
[all...]
/external/scapy/scapy/layers/
H A Dinet6.py35 from time import gmtime, strftime namespace
2740 t = strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime(res))
/external/python/cpython3/Modules/
H A D_datetimemodule.c128 _Py_IDENTIFIER(strftime); variable
1178 * strftime doesn't treat them as format codes.
1211 /* I sure don't want to reproduce the strftime code from the time module,
1270 PyErr_SetString(PyExc_ValueError, "strftime format "
2734 if (! PyArg_ParseTupleAndKeywords(args, kw, "U:strftime", keywords,
2914 {"strftime", (PyCFunction)date_strftime, METH_VARARGS | METH_KEYWORDS,
2915 PyDoc_STR("format -> strftime() style string.")},
2918 PyDoc_STR("Formats self with strftime.")},
3757 if (! PyArg_ParseTupleAndKeywords(args, kw, "U:strftime", keywords,
3761 /* Python's strftime doe
[all...]

Completed in 2502 milliseconds