def get_years(start_time, stop_time):
    """Get years contained in a time period.

    Returns the list of years contained in between the provided
    start time and the stop time.

    :param start_time: Start time to determine list of years
    :type start_time: str
    :param stop_time: Stop time to determine list of years
    :type stop_time: str
    :return: Creation date
    :rtype: list of str
    """
    years = []

    start_year = start_time.split("-")[0]
    finish_year = stop_time.split("-")[0]

    year = int(start_year)
    while year <= int(finish_year):
        years.append(str(year))
        year += 1

    return years