GLib.DateTime.prototype.add

function add(timespan: GLib.TimeSpan): GLib.DateTime {
    // Gjs wrapper for g_date_time_add()
}
  

Creates a copy of datetime and adds the specified timespan to the copy.

Since 2.26

timespan

a GLib.TimeSpan

Returns

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