GLib.DateTime.prototype.get_ymd

function get_ymd(): [year: Number(gint), month: Number(gint), day: Number(gint)] {
    // Gjs wrapper for g_date_time_get_ymd()
}
  

Retrieves the Gregorian day, month, and year of a given GLib.DateTime.

Since 2.26

year

the return location for the gregorian year, or null.

month

the return location for the month of the year, or null.

day

the return location for the day of the month, or null.