GLib.DateTime.prototype.get_month

function get_month(): Number(gint) {
    // Gjs wrapper for g_date_time_get_month()
}
  

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

Since 2.26

Returns

the month represented by datetime