@@ -4663,7 +4663,10 @@ static PyMethodDef time_methods[] = {
4663
4663
{"isoformat" , (PyCFunction )(void (* )(void ))time_isoformat , METH_VARARGS | METH_KEYWORDS ,
4664
4664
PyDoc_STR ("Return string in ISO 8601 format, [HH[:MM[:SS[.mmm[uuu]]]]]"
4665
4665
"[+HH:MM].\n\n"
4666
- "timespec specifies what components of the time to include.\n" )},
4666
+ "The optional argument timespec specifies the number "
4667
+ "of additional terms\nof the time to include. Valid "
4668
+ "options are 'auto', 'hours', 'minutes',\n'seconds', "
4669
+ "'milliseconds' and 'microseconds'.\n" )},
4667
4670
4668
4671
{"strftime" , (PyCFunction )(void (* )(void ))time_strftime , METH_VARARGS | METH_KEYWORDS ,
4669
4672
PyDoc_STR ("format -> strftime() style string." )},
@@ -6370,9 +6373,10 @@ static PyMethodDef datetime_methods[] = {
6370
6373
"YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].\n"
6371
6374
"sep is used to separate the year from the time, and "
6372
6375
"defaults to 'T'.\n"
6373
- "timespec specifies what components of the time to include"
6374
- " (allowed values are 'auto', 'hours', 'minutes', 'seconds',"
6375
- " 'milliseconds', and 'microseconds').\n" )},
6376
+ "The optional argument timespec specifies the number "
6377
+ "of additional terms\nof the time to include. Valid "
6378
+ "options are 'auto', 'hours', 'minutes',\n'seconds', "
6379
+ "'milliseconds' and 'microseconds'.\n" )},
6376
6380
6377
6381
{"utcoffset" , (PyCFunction )datetime_utcoffset , METH_NOARGS ,
6378
6382
PyDoc_STR ("Return self.tzinfo.utcoffset(self)." )},
0 commit comments