]> granicus.if.org Git - python/commitdiff
Patch #481718: Time module doc string changes.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 2 Dec 2001 12:27:43 +0000 (12:27 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 2 Dec 2001 12:27:43 +0000 (12:27 +0000)
Modules/timemodule.c

index ef5ab924df2b18590939c2e1fa93b12f249533ac..a9b7a03b3832b05c0f6aac4e9ec0a6313919a139 100644 (file)
@@ -289,7 +289,7 @@ time_gmtime(PyObject *self, PyObject *args)
 }
 
 static char gmtime_doc[] =
-"gmtime([seconds]) -> tuple\n\
+"gmtime([seconds]) -> (year,month,day,hour,minute,second,weekday,dayofyear,dst)\n\
 \n\
 Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.\n\
 GMT).  When 'seconds' is not passed in, convert the current time instead.";
@@ -306,7 +306,8 @@ time_localtime(PyObject *self, PyObject *args)
 }
 
 static char localtime_doc[] =
-"localtime([seconds]) -> tuple\n\
+"localtime([seconds]) -> (year,month,day,hour,minute,second,weekday,dayofyear,dst)\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.";
 
@@ -444,6 +445,7 @@ time_strptime(PyObject *self, PyObject *args)
 
 static char strptime_doc[] =
 "strptime(string, format) -> tuple\n\
+\n\
 Parse a string to a time tuple according to a format specification.\n\
 See the library reference manual for formatting codes (same as strftime()).";
 #endif /* HAVE_STRPTIME */