@@ -4663,7 +4663,10 @@ static PyMethodDef time_methods[] = {
46634663 {"isoformat" , (PyCFunction )(void (* )(void ))time_isoformat , METH_VARARGS | METH_KEYWORDS ,
46644664 PyDoc_STR ("Return string in ISO 8601 format, [HH[:MM[:SS[.mmm[uuu]]]]]"
46654665 "[+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" )},
46674670
46684671 {"strftime" , (PyCFunction )(void (* )(void ))time_strftime , METH_VARARGS | METH_KEYWORDS ,
46694672 PyDoc_STR ("format -> strftime() style string." )},
@@ -6370,9 +6373,10 @@ static PyMethodDef datetime_methods[] = {
63706373 "YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].\n"
63716374 "sep is used to separate the year from the time, and "
63726375 "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" )},
63766380
63776381 {"utcoffset" , (PyCFunction )datetime_utcoffset , METH_NOARGS ,
63786382 PyDoc_STR ("Return self.tzinfo.utcoffset(self)." )},
0 commit comments