Method

GLibDateTimeadd_minutes

since: 2.26

Declaration [src]

GDateTime*
g_date_time_add_minutes (
  GDateTime* datetime,
  gint minutes
)

Description [src]

Creates a copy of datetime adding the specified number of minutes. Add negative values to subtract minutes.

Available since: 2.26

Parameters

minutes

Type: gint

The number of minutes to add.

Return value

Type: GDateTime

The newly created GDateTime which should be freed with g_date_time_unref(), or NULL.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.