def format_time(time_to_go):
    if time_to_go < 60:
        return "%ds" % time_to_go
    return "%dm %ds" % (time_to_go / 60, time_to_go % 60)
Returns minutes and seconds string for given time in seconds
dataset/ETHPy150Open mozilla/kitsune/kitsune/search/es_utils.py/format_time