date_inc_second(date, amount);
Argument | Description |
---|---|
date | The datetime to add to. |
amount | The number of seconds (must be an integer) to add. |
Returns: Real
With this function you can increment a given datetime value by a
specific number of seconds, and it will return the new datetime
value.
mynewdatetime = date_inc_second(date_current_datetime(), 60);
This would set "mynewdatetime" to the current date but with 60 seconds added.