from datetime import datetime


def check_value_type(value):
    """Verify the type of a value in a csv.

    Params:
        value (string): the data string

    Returns:
        dict {
            type: the type of the value

            max, min -> if type is number
            max_year, min_year -> if type is date
            set -> if type is string
        }
    """
    try:
        float(value)
        return {
            'type': "number",
            'max': -10**1000,
            'min': 10**1000
        }
    except:
        pass
    try:
        datetime.strptime(value, "%Y-%m-%d %H:%M:%S")
        return {
            'type': "date",
            'max_year': -10**1000,
            'min_year': 10**1000
        }
    except:
        pass

    return {
        'type': "string",
        'set': {}
    }