Date.setYear

Sets the year for a #GDate. If the resulting day-month-year triplet is invalid, the date will be invalid.

class Date
void
setYear

Parameters

year GDateYear

year to set

Meta