GLib.DateTime.prototype.add_days

function add_days(days: Number(gint)): GLib.DateTime {
    // Gjs wrapper for g_date_time_add_days()
}
  

Creates a copy of datetime and adds the specified number of days to the copy. Add negative values to subtract days.

Since 2.26

days

the number of days

Returns

the newly created GLib.DateTime which should be freed with GLib.DateTime.prototype.unref.