diff --git a/colorbar-fastloop.py b/colorbar-fastloop.py index 3ba157f..0db7894 100644 --- a/colorbar-fastloop.py +++ b/colorbar-fastloop.py @@ -103,16 +103,7 @@ pixels.show() # Use datetime.timedelta to convert an int of seconds to a # string with the format MM:SS def prettytime(seconds): - # Add a negative sign to the output when current_time is negative. - # prettytime() puts the given value through abs() because the way - # datetime.timedelta() represents negative values is kind of a PITA - # to deal with. - if seconds < 0: - display_time_sign = "-" - else: - display_time_sign = "" - - return display_time_sign + str(datetime.timedelta(seconds=abs(seconds)))[2:] + return str(datetime.timedelta(seconds=abs(seconds)))[2:] # Set the color on a single neopixel based on colormode and