GLib.Date.new_dmy

function new_dmy(day: GLib.DateDay, month: GLib.DateMonth, year: GLib.DateYear): GLib.Date {
    // Gjs wrapper for g_date_new_dmy()
}
  

Like GLib.Date.new, but also sets the value of the date. Assuming the day-month-year triplet you pass in represents an existing day, the returned date will be valid.

day

day of the month

month

month of the year

year

year

Returns

a newly-allocated GLib.Date initialized with day, month, and year