summaryrefslogtreecommitdiffstats
path: root/Modules/datetimemodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-12-19 20:13:24 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-12-19 20:13:24 (GMT)
commit3a4231dd745e54ae533ce46371637f1fe8fa6a7b (patch)
tree06dd1c3fcb203c3d2f802e981a3a82a0cd036b1a /Modules/datetimemodule.c
parent94eaee6d49a12b6f332747b53780146027072a57 (diff)
downloadcpython-3a4231dd745e54ae533ce46371637f1fe8fa6a7b.zip
cpython-3a4231dd745e54ae533ce46371637f1fe8fa6a7b.tar.gz
cpython-3a4231dd745e54ae533ce46371637f1fe8fa6a7b.tar.bz2
Bug #1087216: datetime module documentation missing critical detail
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r--Modules/datetimemodule.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index 6312e21..4b4b2c5 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -2659,7 +2659,7 @@ static PyMethodDef date_methods[] = {
};
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 PyMethodDef time_methods[] = {
};
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 PyMethodDef datetime_methods[] = {
};
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 */