unsilence.command_line.PrettyTimeEstimate

Module Contents

Functions

format_timedelta(seconds)

Generates a pretty time representation for seconds (format: hour:minute:second)

pretty_time_estimate(time_data)

Generates a rich.table.Table object from the time_data dict (from lib.Intervals.TimeCalculations.calculate_time)

unsilence.command_line.PrettyTimeEstimate.format_timedelta(seconds)

Generates a pretty time representation for seconds (format: hour:minute:second) :param seconds: Amount of seconds (can be negative) :return: String representation

unsilence.command_line.PrettyTimeEstimate.pretty_time_estimate(time_data: dict)

Generates a rich.table.Table object from the time_data dict (from lib.Intervals.TimeCalculations.calculate_time) :param time_data: time_data dict (from lib.Intervals.TimeCalculations.calculate_time) :return: rich.table.Table object