DateTime.add

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

class DateTime
add

Parameters

timespan GTimeSpan

a #GTimeSpan

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

Meta

Since

2.26