You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Adds hours to a time.

Time = SRP_Time("AddHours", Time, Hours)

Returns

A new time.

Parameters

ParameterDescription
TimeA time in OI internal format. (REQUIRED)
HoursThe 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)

// Add an hour and a half to the current time
NewTime = SRP_Time("AddHours", Time(), 1.5)

// Subtract 10 hours from the current time
NewTime = SRP_Time("AddHours", Time(), -10)

  • No labels