DateTime.addMonths

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

class DateTime
addMonths
(
int months
)

Parameters

months int

the number of months

Return Value

Type: DateTime

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

Meta

Since

2.26