Gst.DateTime.prototype.has_year

function has_year():Boolean {
    // Gjs wrapper for gst_date_time_has_year()
}
Returns

TRUE if datetime<!-- -->'s year field is set (which should always be the case), otherwise FALSE