redbar0n - Overview

1

# Will take as input a time in seconds (which is typically a result after subtracting two Time objects),

2

# and return the result in HH:MM:SS, but instead of resetting HH to 00 when the time exceeds a 24 hour period,

3

# it will increase it indefinitely. For other variations, see discussion here: https://gist.github.com/shunchu/3175001

4

def formatted_duration(total_seconds)

5

  total_seconds = total_seconds.round # to avoid fractional seconds to potentially compound and mess up seconds, minutes and hours