@staticmethod
def time_from_ms(ms):
    """
        Converts milliseconds into a mm:ss formatted string.

        Arguments:
        ms: Number of milliseconds.

        Returns: String-formatted time period in mm:ss.
        """
    ms = int(ms)
    minutes = str(ms // 60000).zfill(2)
    seconds = str(ms // 1000 % 60).zfill(2)
    return '%s:%s' % (minutes, seconds)
