GLib.Date.new
function new(): GLib.Date {
// Gjs wrapper for g_date_new()
}
Allocates a GLib.Date and initializes it to a sane state. The new date will be cleared (as if you'd called GLib.Date.prototype.clear) but invalid (it won't represent an existing day). Free the return value with GLib.Date.prototype.free.
- Returns
a newly-allocated GLib.Date