date_inc_week(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 week 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 weeks to increment by

Return Values

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

Example Call

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