DateTime.addYears

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

class DateTime
addYears
(
int years
)

Parameters

years int

the number of years

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

Meta

Since

2.26