Sets the year for the selected date.
The new date must be valid. For example, setting 2023 for the year when then the date is 2024-02-29, fails.
The desired year for the selected date (within glib.date_time.DateTime limits, i.e. from 0001 to 9999).
Sets the year for the selected date.
The new date must be valid. For example, setting 2023 for the year when then the date is 2024-02-29, fails.