@staticmethod
def format_seconds(seconds: int):
    """
        Formats an amount of seconds into a mm:ss format. If in hour-range, also add hours in front (h:mm:ss)
        
        :param seconds: amount of seconds to be formatted
        :type seconds: int
        :return: string in h:mm:ss format.
        """
    result = ''
    if seconds // 3600 > 0:
        result += f'{seconds // 3600}:'
    result += (
        f'{str(seconds % 3600 // 60).zfill(2)}:{str(seconds % 60).zfill(2)}')
    return result
