Returns a datetime after a given number of months have been added.


date_inc_month( date, amount );

参数 描述
date The datetime to add to.
amount The number of months (must be an integer) to add.

返回: Real(实数)


With this function you can increment a given datetime value by a specific number of months, and it will return the new datetime value.


mynewdatetime = date_inc_month(date_current_datetime(), 12);

This would set "mynewdatetime" to the current date but with 12 months added.

上一页: Date And Time
下一页: date_inc_second
© Copyright YoYo Games Ltd. 2018 All Rights Reserved