GLib.Date.prototype.add_years
function add_years(n_years: Number(guint)): void { // Gjs wrapper for g_date_add_years() }
Increments a date by some number of years. If the date is February 29, and the destination year is not a leap year, the date will be changed to February 28. The date must be valid.
- n_years
number of years to move forward