Change-Time
Command Description
Change a unit of measure in time
Command Prototype
iRet = Time.DateAdd(sUnit,iCount,dTime)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sUnit | True | enum | "s" | The time unit to be changed |
iCount | True | number | 1 | The count of unit of time to add to change the time |
dTime | True | expression | tRet | The 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
*/