@@ -4673,7 +4673,10 @@ static PyMethodDef time_methods[] = {
4673
4673
{"isoformat" , (PyCFunction )(void (* )(void ))time_isoformat , METH_VARARGS | METH_KEYWORDS ,
4674
4674
PyDoc_STR ("Return string in ISO 8601 format, [HH[:MM[:SS[.mmm[uuu]]]]]"
4675
4675
"[+HH:MM].\n\n"
4676
- "timespec specifies what components of the time to include.\n" )},
4676
+ "The optional argument timespec specifies the number "
4677
+ "of additional terms\nof the time to include. Valid "
4678
+ "options are 'auto', 'hours', 'minutes',\n'seconds', "
4679
+ "'milliseconds' and 'microseconds'.\n" )},
4677
4680
4678
4681
{"strftime" , (PyCFunction )(void (* )(void ))time_strftime , METH_VARARGS | METH_KEYWORDS ,
4679
4682
PyDoc_STR ("format -> strftime() style string." )},
@@ -6380,9 +6383,10 @@ static PyMethodDef datetime_methods[] = {
6380
6383
"YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].\n"
6381
6384
"sep is used to separate the year from the time, and "
6382
6385
"defaults to 'T'.\n"
6383
- "timespec specifies what components of the time to include"
6384
- " (allowed values are 'auto', 'hours', 'minutes', 'seconds',"
6385
- " 'milliseconds', and 'microseconds').\n" )},
6386
+ "The optional argument timespec specifies the number "
6387
+ "of additional terms\nof the time to include. Valid "
6388
+ "options are 'auto', 'hours', 'minutes',\n'seconds', "
6389
+ "'milliseconds' and 'microseconds'.\n" )},
6386
6390
6387
6391
{"utcoffset" , (PyCFunction )datetime_utcoffset , METH_NOARGS ,
6388
6392
PyDoc_STR ("Return self.tzinfo.utcoffset(self)." )},
0 commit comments