Skip to main content

Get-Unit-in-Time

Command Description

Get the specified unit part of a time

Command Prototype

iRet = Time.DatePart(sUnit, dTime)

Parameter Description

ParameterRequiredTypeDefaultDescription
sUnitTrueenum"s"The time unit to get
dTimeTrueexpressiontRetThe time to get data from

return

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

Demo

Dim iRet 
iRet = Time.DatePart("s", 44601.610763889)
TracePrint(iRet)
/**
iRet 30
*/