date_inc_month(date,amount)

From ENIGMA
Jump to navigation Jump to search

Description

Creates a new date-time value from the given date-time value with the current month incremented by the given amount and returns the new date-time value.

Parameters

Parameter Data Type Description
date time_t the original date-time value
amount integer numbers of months to increment by

Return Values

time_t: Returns the new date-time value with the current month incremented.

Example Call

// demonstrates getting the date of the current day one month from now
var tom;
tom = date_inc_month(date_current_date(), 1);