timeutils.timespan module

TimeSpan

class timeutils.timespan.TimeSpan(seconds)[source]

Stores a time span with millisecond precision.

Parameters:seconds (float) – precise number of seconds in the time span.
days
hours
human_str(trim_zeros=True)[source]

Returns a human-readable TimeSpan object, represented as time units such as days, hours, minutes, and seconds.

milliseconds
minutes
seconds
total_hours
total_milliseconds
total_minutes
total_seconds