TimeAdd

Adds two YmdHms variables

Syntax:

TimeAdd(datetime, datetime difference)

Parameters:

(s) datetime a datetime using the format of YYYY:MM:DD:HH:MM:SS.

(s) datetime difference a datetime to be added to the original using the same format.

Returns:

(s) datetime a new datetime

 

Use this function to add a specified datetime to an original datetime. TimeAdd uses normalized conversion so a valid datetime will be returned.

IntControl 41 can be used to control YmdHms format returned by time functions.

Example:


Now=TimeYmdHms( )
AddTime = "0000:00:00:157:00:00" ; 157 hours
Later=TimeAdd(Now, AddTime)
Message("157 hours from now will be", Later)
See Also:

FileTimeGet, FileTimeGetEx, TimeDate, TimeYmdHms, TimeDiffSecs, TimeDelay, TimeWait, TimeSubtract, IntControl 41