GLib.Date.prototype.get_sunday_week_of_year

function get_sunday_week_of_year(): Number(guint) {
    // Gjs wrapper for g_date_get_sunday_week_of_year()
}
  

Returns the week of the year during which this date falls, if weeks are understood to being on Sunday. The date must be valid. Can return 0 if the day is before the first Sunday of the year.

Returns

week number