def _to_hhmmss(seconds):
    """ Converts seconds to hh:mm:ss,ms time format """
    total_secs = float(seconds)
    hours = int(total_secs / 3600)
    mins = int((total_secs - (hours * 3600)) / 60)
    secs = total_secs - (hours * 3600) - (mins * 60)

    hours = '{:02d}'.format(hours)
    mins = '{:02d}'.format(mins)
    secs = '{:.3f}'.format(secs)

    if float(secs) < 10:
        secs = '0{}'.format(secs)

    return '{}:{}:{}'.format(hours, mins, secs.replace('.', ','))