Mercurial > cpython-lru_cache-weakref
diff Modules/datetimemodule.c @ 34191:cd4dd6dd9721 2.4
Bug #1087216: datetime module documentation missing critical detail
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Sun, 19 Dec 2004 20:16:57 +0000 |
| parents | abbdbba56a8b |
| children | 1d3081cb3ea6 563cbf4d6be4 |
line wrap: on
line diff
--- a/Modules/datetimemodule.c Sat Dec 18 21:08:11 2004 +0000 +++ b/Modules/datetimemodule.c Sun Dec 19 20:16:57 2004 +0000 @@ -2659,7 +2659,7 @@ }; static char date_doc[] = -PyDoc_STR("Basic date type."); +PyDoc_STR("date(year, month, day) --> date object"); static PyNumberMethods date_as_number = { date_add, /* nb_add */ @@ -3431,7 +3431,10 @@ }; static char time_doc[] = -PyDoc_STR("Time type."); +PyDoc_STR("time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object\n\ +\n\ +All arguments are optional. tzinfo may be None, or an instance of\n\ +a tzinfo subclass. The remaining arguments may be ints or longs.\n"); static PyNumberMethods time_as_number = { 0, /* nb_add */ @@ -4468,7 +4471,10 @@ }; static char datetime_doc[] = -PyDoc_STR("date/time type."); +PyDoc_STR("datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])\n\ +\n\ +The year, month and day arguments are required. tzinfo may be None, or an\n\ +instance of a tzinfo subclass. The remaining arguments may be ints or longs.\n"); static PyNumberMethods datetime_as_number = { datetime_add, /* nb_add */
