Method
GLibDateTimeadd_full
Declaration
GDateTime*
g_date_time_add_full (
GDateTime* datetime,
gint years,
gint months,
gint days,
gint hours,
gint minutes,
gdouble seconds
)
Description
Creates a new GDateTime
adding the specified values to the current date and
time in datetime
. Add negative values to subtract.
Available since: | 2.26 |
Parameters
years |
gint |
The number of years to add. |
|
months |
gint |
The number of months to add. |
|
days |
gint |
The number of days to add. |
|
hours |
gint |
The number of hours to add. |
|
minutes |
gint |
The number of minutes to add. |
|
seconds |
gdouble |
The number of seconds to add. |
Return value
Returns: | GDateTime |
The newly created |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL . |