def time_formatter(time_in, time_format):
    """Time stamp format checker

    Check if the input time stamp meet with the required time format, if not,
    change it to the correct format

    Args:
        time_in (datetime.datetime): The input timestamp
        time_format (str): The format you want the timestamp to follow

    Returns:
        datetime.datetime: the timestamp with the corresponding format

    """
    time_out = str(time_in.strftime(time_format))
    return time_out