Adds hours to a time.
Time = SRP_Time("AddHours", Time, Hours)
Returns
A new time.
Parameters
| Parameter | Description |
|---|---|
| Time | A time in OI internal format. (REQUIRED) |
| Hours | The number of hours to add. (REQUIRED) |
Remarks
The "AddHours" service calculates a new time by adding the given number of hours to an existing time. You can pass positive or negative whole numbers.
Examples
// Add 10 hours the current time
NewTime = SRP_Time("AddHours", Time(), 10)
// Subtract 10 hours from the current time
NewTime = SRP_Time("AddHours", Time(), -10)