DateTime.addWeeks

glib.date_time.DateTime addWeeks(int weeks)

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

Parameters

weeksthe number of weeks

Returns

the newly created #GDateTime which

should be freed with [glib.date_time.DateTime.unref], or null