[issue42817] timedelta zeropadding hh

Eric V. Smith report at bugs.python.org
Sun Jan 3 13:11:18 EST 2021


Eric V. Smith <eric at trueblade.com> added the comment:

I don't think zero padding makes sense. For example:

>>> td = datetime.timedelta(hours=100)
>>> str(td)
'4 days, 4:00:00'

I think '4 days, 04:00:00' would not be very user friendly.

In any event, backward compatibility would prevent us from changing this.

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42817>
_______________________________________


More information about the Python-bugs-list mailing list