DateTime.addHours

Creates a copy of datetime and adds the specified number of hours Since 2.26

class DateTime
addHours
(
int hours
)

Parameters

hours int

the number of hours to add

Return Value

Type: DateTime

the newly created GDateTime which should be freed with g_date_time_unref().

Meta