BPO-42817 Zeropad timedelta hh to 2
hh seems to be padded to 2 everywhere else except for within timedelta.
This commit is contained in:
parent
6613676861
commit
7f262509ca
|
@ -576,7 +576,7 @@ class timedelta:
|
|||
def __str__(self):
|
||||
mm, ss = divmod(self._seconds, 60)
|
||||
hh, mm = divmod(mm, 60)
|
||||
s = "%d:%02d:%02d" % (hh, mm, ss)
|
||||
s = "%02d:%02d:%02d" % (hh, mm, ss)
|
||||
if self._days:
|
||||
def plural(n):
|
||||
return n, abs(n) != 1 and "s" or ""
|
||||
|
|
Loading…
Reference in New Issue