@classmethod
def ms_to_minsec(cls, ms: int, space: str='') ->str:
    """
		Converts a number of milliseconds to one of the following formats:
			- 10ms         if < 1 sec
			- 10:15        if < 1 hour
			- 10:15:33     if < 1 day
			- 5d:10:15:33  if > 1 day
		Prepends a minus sign (−) if negative.
		:param ms: The milliseconds
		:param space: Space char between digits and 'ms' or 'd' for day (if used); good choices are empty, ASCII space, Chars.narrownbsp, Chars.thinspace, and Chars.nbsp.
		:return: A string of one of the formats above
		"""
    is_neg = ms < 0
    ms = abs(int(ms))
    seconds = int(ms / 1000 % 60)
    minutes = int(ms / (1000 * 60) % 60)
    hours = int(ms / (1000 * 60 * 60) % 24)
    days = int(ms / (1000 * 60 * 60 * 24))
    if ms < 1000:
        s = '{}{}ms'.format(space, ms)
    elif days > 1:
        s = '{}{}d:{}:{}:{}'.format(days, space, str(hours).zfill(2), str(
            minutes).zfill(2), str(seconds).zfill(2))
    elif hours > 1:
        s = '{}:{}:{}'.format(str(hours).zfill(2), str(minutes).zfill(2),
            str(seconds).zfill(2))
    else:
        s = '{}:{}'.format(str(minutes).zfill(2), str(seconds).zfill(2))
    return '−' + s if is_neg else s
