GLib.Date.prototype.days_between
function days_between(date2: GLib.Date): Number(gint) {
// Gjs wrapper for g_date_days_between()
}
Computes the number of days between two dates. If date2 is prior to date1, the returned value is negative. Both dates must be valid.
- date2
the second date
- Returns
the number of days between date1 and date2