Skip to main content

Change-Time

Command Description

Change a unit of measure in time

Command Prototype

iRet = Time.DateAdd(sUnit,iCount,dTime)

Parameter Description

ParameterRequiredTypeDefaultDescription
sUnitTrueenum"s"The time unit to be changed
iCountTruenumber1The count of unit of time to add to change the time
dTimeTrueexpressiontRetThe time to be changed

return

iRet,The variable used to save the output of the command.

Demo

Dim iRet 
iRet = Time.DateAdd("d",1,44601.0)
TracePrint(iRet)
/**
iRet 44602.0
*/