+bugfix
This commit is contained in:
parent
f83f68ca66
commit
c68746dbd1
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ def formatDuration(ms, verbosity=0, years=True, hours=True, milliseconds=True):
|
||||||
False: never display milliseconds
|
False: never display milliseconds
|
||||||
>>> formatDuration(1000 * 60 * 60 * 24 * 366)
|
>>> formatDuration(1000 * 60 * 60 * 24 * 366)
|
||||||
'1:001:00:00:00.000'
|
'1:001:00:00:00.000'
|
||||||
>>> formatDuration(1000 * 60 * 60 * 24 * 366, year=False)
|
>>> formatDuration(1000 * 60 * 60 * 24 * 366, years=False)
|
||||||
'366:00:00:00.000'
|
'366:00:00:00.000'
|
||||||
>>> formatDuration(1000 * 60 * 60 * 24 * 365 + 2003, verbosity=2)
|
>>> formatDuration(1000 * 60 * 60 * 24 * 365 + 2003, verbosity=2)
|
||||||
'1 year 2 seconds 3 milliseconds'
|
'1 year 2 seconds 3 milliseconds'
|
||||||
|
|
Loading…
Reference in a new issue