summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-12-24 19:58:25 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-12-24 19:58:25 (GMT)
commit8d993aae8f0bca8e522babe619058ef8d3372b96 (patch)
treea51f44863af43ca85e7cb93b5a0f31df7b034f6a /Modules
parent2d60cf713523f41dcfbd3cd3342426e023f949fe (diff)
downloadcpython-8d993aae8f0bca8e522babe619058ef8d3372b96.zip
cpython-8d993aae8f0bca8e522babe619058ef8d3372b96.tar.gz
cpython-8d993aae8f0bca8e522babe619058ef8d3372b96.tar.bz2
Fix the docstrings of time.localtime() and gmtime() for the tm_mday field.
Will backport.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/timemodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 4f562c7..842ce94 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -317,7 +317,7 @@ time_gmtime(PyObject *self, PyObject *args)
}
PyDoc_STRVAR(gmtime_doc,
-"gmtime([seconds]) -> (tm_year, tm_mon, tm_day, tm_hour, tm_min,\n\
+"gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, tm_hour, tm_min,\n\
tm_sec, tm_wday, tm_yday, tm_isdst)\n\
\n\
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.\n\
@@ -333,7 +333,8 @@ time_localtime(PyObject *self, PyObject *args)
}
PyDoc_STRVAR(localtime_doc,
-"localtime([seconds]) -> (tm_year,tm_mon,tm_day,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)\n\
+"localtime([seconds]) -> (tm_year,tm_mon,tm_mday,tm_hour,tm_min,\n\
+ tm_sec,tm_wday,tm_yday,tm_isdst)\n\
\n\
Convert seconds since the Epoch to a time tuple expressing local time.\n\
When 'seconds' is not passed in, convert the current time instead.");