import logging


def time_remain_converter(time: str) -> str:
    """Takes a time remaining string and determines if its less than 1 minute.

    Args:
        time: time remaining in the period

    Returns:
        time_new: possibly modified time string
    """
    try:
        minutes = time.split(":")[0]
        seconds = time.split(":")[1]

        time_new = f"{seconds} seconds" if minutes == "00" else time
        return time_new
    except Exception as e:
        logging.warning("The value %s cannot be converted to seconds. %s", time, e)
        return "0 seconds"