You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
detailed – If True milliseconds are represented separately instead of being represented as fractional seconds (defaults to False).
But in some cases milliseconds are displayed anyway:
>>>importhumanfriendlyashf>>>hf.format_timespan(59.99)
'59.99 seconds'>>>hf.format_timespan(61.10)
'1 minute, 1 second and 100 milliseconds'>>>hf.format_timespan(61.10, False)
'1 minute, 1 second and 100 milliseconds'>>>hf.format_timespan(3600*123+.456)
'5 days, 3 hours and 456 milliseconds'
The text was updated successfully, but these errors were encountered:
Hi Nikolay and thanks for the clear bug report, this issue should now be fixed! I first wrote tests that reproduce issues #10 and #11 and then fixed both (and needed to restore Python 2.6 compatibility).
Hi,
The documentation says:
But in some cases milliseconds are displayed anyway:
The text was updated successfully, but these errors were encountered: