Method

GLibDateTimeadd_seconds

Declaration

GDateTime*
g_date_time_add_seconds (
  GDateTime* datetime,
  gdouble seconds
)

Description

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

Available since:2.26

Parameters

seconds gdouble
 

The number of seconds to add.

Return value

Returns: 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 data, and is responsible for freeing it.
 The return value can be NULL.