GLib.DateTime.prototype.get_day_of_year

function get_day_of_year(): Number(gint) {
    // Gjs wrapper for g_date_time_get_day_of_year()
}
  

Retrieves the day of the year represented by datetime in the Gregorian calendar.

Since 2.26

Returns

the day of the year