http://mf34jlghauz5pxjcmdymdqbe5pva4v24logeys446tdrgd5lpsrocmqd.onion/_modules/stem/util/str_tools.html
For example... :: > > > time_labels(400) [ ' 6m ' , ' 40s ' ] > > > time_labels(3640, True) [ ' 1 hour ' , ' 40 seconds ' ] :param int seconds: number of seconds to be converted :param bool is_long: expands units label :returns: **list** of strings with human readable representations of the time " " " time_labels = [] for count_per_unit , _ , _ in TIME_UNITS : if abs ( seconds ) > = count_per_unit : time_labels . append ( _get_label ( TIME_UNITS , seconds , 0 , is_long )) seconds %=...