timeutils.timespan module

TimeSpan

class timeutils.timespan.TimeSpan[source]

Bases: datetime.timedelta

Stores a time span.

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

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

total_hours()[source]
total_milliseconds()[source]
total_minutes()[source]