DateTime.addHours

glib.date_time.DateTime addHours(int hours)

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

Parameters

hoursthe number of hours to add

Returns

the newly created #GDateTime which

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