def dtime2a(dtime):
    """Converts time in seconds to 'HH:MM:SS'"""
    dtime = int(dtime)
    sec = dtime % 60
    dtime /= 60
    minute = dtime % 60
    dtime /= 60
    hour = dtime
    return "%d:%02d:%02d" % (hour, minute, sec)