def format_time(time):
    if (not isinstance(time, datetime.timedelta)):
        time = datetime.timedelta(seconds=int((time / 1000.0)))
    return (':'.join(str(time).split(':')[:2]) + 'h')
def format_time(time):
    if (not isinstance(time, datetime.timedelta)):
        time = datetime.timedelta(seconds=int((time / 1000.0)))
    return (':'.join(str(time).split(':')[:2]) + 'h')