Skip to content

SpanAdd functions

Include: Use System\DateTime.pkg

SpanAdd functions return a TimeSpan shifted by the requested interval.

Functions

Function Signature Description
SpanAddDay Function SpanAddDay Global TimeSpan spanValue Integer iDays Returns TimeSpan Adds days to a TimeSpan.
SpanAddHour Function SpanAddHour Global TimeSpan spanValue Integer iHours Returns TimeSpan Adds hours to a TimeSpan.
SpanAddMinute Function SpanAddMinute Global TimeSpan spanValue Integer iMinutes Returns TimeSpan Adds minutes to a TimeSpan.
SpanAddSecond Function SpanAddSecond Global TimeSpan spanValue Integer iSeconds Returns TimeSpan Adds seconds to a TimeSpan.
SpanAddMillisecond Function SpanAddMillisecond Global TimeSpan spanValue Integer iMilliseconds Returns TimeSpan Adds milliseconds to a TimeSpan.

Syntax

Function SpanAddDay Global TimeSpan spanValue Integer iDays Returns TimeSpan
Function SpanAddHour Global TimeSpan spanValue Integer iHours Returns TimeSpan
Function SpanAddMinute Global TimeSpan spanValue Integer iMinutes Returns TimeSpan
Function SpanAddSecond Global TimeSpan spanValue Integer iSeconds Returns TimeSpan
Function SpanAddMillisecond Global TimeSpan spanValue Integer iMilliseconds Returns TimeSpan

Example

TimeSpan spanElapsed
Get SpanAddDay spanElapsed 1 to spanElapsed
Get SpanAddMillisecond spanElapsed 250 to spanElapsed

See also