date_inc_hour

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

Syntax:

date_inc_hour(date, amount);


Argument Description
date The datetime to add to.
amount The number of hours (must be an integer) to add.


Returns: Real


Description

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


Example:

mynewdatetime = date_inc_hour(date_current_datetime(), 24);

This would set mynewdatetime to the current date but with 24 hours added.


Back: Date And Time
Next: date_inc_minute
© Copyright YoYo Games Ltd. 2019 All Rights Reserved