addHours

fun addHours(hours: Int): DateTime?

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

Return

the newly created #GDateTime which should be freed with g_date_time_unref(), or null

Since

2.26

Parameters

hours

the number of hours to add