]> granicus.if.org Git - python/commitdiff
Fix the docstrings of time.localtime() and gmtime() for the tm_mday field.
authorBrett Cannon <bcannon@gmail.com>
Mon, 24 Dec 2007 19:58:25 +0000 (19:58 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 24 Dec 2007 19:58:25 +0000 (19:58 +0000)
Will backport.

Modules/timemodule.c

index 4f562c78e94895acc93f8efb9f16ca969dd6edb3..842ce94f09d0c1e51773e1f55eaff3a32ac1edb0 100644 (file)
@@ -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.");