GLib.Date.prototype.valid
function valid(): Boolean { // Gjs wrapper for g_date_valid() }
Returns true if the GLib.Date represents an existing day. The date must not contain garbage; it should have been initialized with GLib.Date.prototype.clear if it wasn't allocated by one of the GLib.Date.new variants.
- Returns
Whether the date is valid