Description |
AddTime (Magic xpa 4.x)
Performs calculations on a Time variable.
Constructs an input time and three values that can be added to that time: hours, minutes, or seconds. The resulting time is the original input plus the number of hours, minutes, or seconds added to it.
|
Syntax:
|
AddTime(time,hours,minutes,seconds)
|
Parameters:
|
time – The Time value.
hours – The number of hours that can be added to the time input.
minutes – The number of minutes that can be added to the time input.
seconds – The number of seconds that can be added to the time input.
|
Returns:
|
The Time value.
|
Note:
|
Zero values of the AddTime parameters are ignored.
|
Example:
|
AddTime('12:00:00'Time,1,2,3) returns 13:02:03
|
See also:
|
AddDate, TVal
How Do I Increment a Time Value?
The Online and Rich Client Samples projects (program DT05 and RDT05)
|
|
|
---|