diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index 0631272429f4f1..4f22b39ea8c75b 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -3500,8 +3500,13 @@ static PyMethodDef date_methods[] = { {"ctime", (PyCFunction)date_ctime, METH_NOARGS, PyDoc_STR("Return ctime() style string.")}, - {"strftime", (PyCFunction)(void(*)(void))date_strftime, METH_VARARGS | METH_KEYWORDS, - PyDoc_STR("format -> strftime() style string.")}, + {"strftime", (PyCFunction)(void(*)(void))date_strftime, METH_VARARGS | METH_KEYWORDS, + PyDoc_STR("strftime(format) -> style\n" + "\n" + "Return a string representing the date, controlled by an " + "explicit format string.\n" + "Format codes referring to hours, minutes or seconds will see " + "0 values.")}, {"__format__", (PyCFunction)date_format, METH_VARARGS, PyDoc_STR("Formats self with strftime.")}, @@ -4666,7 +4671,10 @@ static PyMethodDef time_methods[] = { "timespec specifies what components of the time to include.\n")}, {"strftime", (PyCFunction)(void(*)(void))time_strftime, METH_VARARGS | METH_KEYWORDS, - PyDoc_STR("format -> strftime() style string.")}, + PyDoc_STR("strftime(format) -> style\n" + "\n" + "Return a string representing the date, controlled by an " + "explicit format string.")}, {"__format__", (PyCFunction)date_format, METH_VARARGS, PyDoc_STR("Formats self with strftime.")}, @@ -6356,6 +6364,12 @@ static PyMethodDef datetime_methods[] = { {"ctime", (PyCFunction)datetime_ctime, METH_NOARGS, PyDoc_STR("Return ctime() style string.")}, + {"strftime", (PyCFunction)(void(*)(void))date_strftime, METH_VARARGS | METH_KEYWORDS, + PyDoc_STR("strftime(format) -> style\n" + "\n" + "Return a string representing the date, controlled by an " + "explicit format string.")}, + {"timetuple", (PyCFunction)datetime_timetuple, METH_NOARGS, PyDoc_STR("Return time tuple, compatible with time.localtime().")},
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: