GLib.Date.prototype.get_year

function get_year(): GLib.DateYear {
    // Gjs wrapper for g_date_get_year()
}
  

Returns the year of a GLib.Date. The date must be valid.

Returns

year in which the date falls