@@ -4539,7 +4539,10 @@ static PyMethodDef time_methods[] = {
4539
4539
{"isoformat" , (PyCFunction )(void (* )(void ))time_isoformat , METH_VARARGS | METH_KEYWORDS ,
4540
4540
PyDoc_STR ("Return string in ISO 8601 format, [HH[:MM[:SS[.mmm[uuu]]]]]"
4541
4541
"[+HH:MM].\n\n"
4542
- "timespec specifies what components of the time to include.\n" )},
4542
+ "The optional argument timespec specifies the number "
4543
+ "of additional terms\nof the time to include. Valid "
4544
+ "options are 'auto', 'hours', 'minutes',\n'seconds', "
4545
+ "'milliseconds' and 'microseconds'.\n" )},
4543
4546
4544
4547
{"strftime" , (PyCFunction )(void (* )(void ))time_strftime , METH_VARARGS | METH_KEYWORDS ,
4545
4548
PyDoc_STR ("format -> strftime() style string." )},
@@ -6246,9 +6249,10 @@ static PyMethodDef datetime_methods[] = {
6246
6249
"YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].\n"
6247
6250
"sep is used to separate the year from the time, and "
6248
6251
"defaults to 'T'.\n"
6249
- "timespec specifies what components of the time to include"
6250
- " (allowed values are 'auto', 'hours', 'minutes', 'seconds',"
6251
- " 'milliseconds', and 'microseconds').\n" )},
6252
+ "The optional argument timespec specifies the number "
6253
+ "of additional terms\nof the time to include. Valid "
6254
+ "options are 'auto', 'hours', 'minutes',\n'seconds', "
6255
+ "'milliseconds' and 'microseconds'.\n" )},
6252
6256
6253
6257
{"utcoffset" , (PyCFunction )datetime_utcoffset , METH_NOARGS ,
6254
6258
PyDoc_STR ("Return self.tzinfo.utcoffset(self)." )},
0 commit comments