Xbasic
*add_hours Function
Syntax
dim newTime as T = *ADD_HOURS(time as T, hours as N)
Arguments
- timeTime
A time value.
- hoursNumeric
The number of hours to add to the time value. Hours can be a negative value.
Returns
- newTimeTime
Returns the time value incremented by hours.
Description
Add hours to date or time.
Example
dim time as t time = now() ? time = 10/12/2017 08:54:05 89 am dim increment as n increment = round(rand()*100,0) ? increment = 9 ? *add_hours(time, increment) = 10/12/2017 05:54:05 89 pm
See Also