Adds seconds to a time.

Time = SRP_Time("AddSeconds", Time, Seconds)

Returns

A new time.

Parameters

ParameterDescription
TimeA time in OI internal format. (REQUIRED)
SecondsThe number of seconds to add. (REQUIRED)

Remarks

The "AddSeconds" service calculates a new time by adding the given number of seconds to an existing time. You can pass positive or negative whole numbers only.

Examples

// Add 10 seconds the current time
NewTime = SRP_Time("AddSeconds", Time(), 10)

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

  • No labels