def timedelta_fmt(seconds):
    result = []

    seconds = int(seconds)
    for interval, name in TIME_UNITS:
        amount = seconds / interval
        if amount > 0:
            result.append('{0} {1}'.format(amount, name[1 % amount]))
            seconds -= amount * interval
    return ', '.join(result)
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/utils/sizeof_format.py/timedelta_fmt/original