GLib.DateTime.prototype.add_full
function add_full(years: Number(gint), months: Number(gint), days: Number(gint), hours: Number(gint), minutes: Number(gint), seconds: Number(gdouble)): GLib.DateTime {
// Gjs wrapper for g_date_time_add_full()
}
Creates a new GLib.DateTime adding the specified values to the current date and time in datetime. Add negative values to subtract.
Since 2.26
- years
the number of years to add
- months
the number of months to add
- days
the number of days to add
- hours
the number of hours to add
- minutes
the number of minutes to add
- seconds
the number of seconds to add
- Returns
the newly created GLib.DateTime that should be freed with GLib.DateTime.prototype.unref.