import math


def to_clock(time_secs):
    """
    Converts match time in seconds to a clock time in the format: m:ss.
    Args:
        time_secs: Number of seconds (float).
    Returns:
        Clock time in format: m:ss (str).
    """
    mins = math.floor(time_secs / 60)
    secs = str(math.floor(time_secs) % 60)
    secs_left_pad = "0{}".format(secs) if len(secs) == 1 else secs
    time_clock = "{}:{}".format(mins, secs_left_pad)
    return time_clock