import time


def mstoMin(ms) -> str:
    """Convert milliseconds to 0:00 format"""
    if ms >= 3600000:
        return time.strftime("%H:%M:%S", time.gmtime(ms / 1000))
    else:
        return time.strftime("%M:%S", time.gmtime(ms / 1000))