date_inc_year

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

语法:

date_inc_year(date, amount);


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


返回: Real(实数)


描述

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


例如:

mynewdatetime = date_inc_year(date_current_datetime(), 1000);

This would set mynewdatetime to the current date but with 1000 years added.


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