def replace(self, year=None, month=None, day=None):
        if year is None:
            year = self.__year
        if month is None:
            month = self.__month
        if day is None:
            day = self.__day
        _check_date_fields(year, month, day)
        return date(year, month, day)

    # Comparisons.
Return a new date with new values for the specified fields.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/datetime.py/date.replace