Get-Unit-in-Time
Command Description
Get the specified unit part of a time
Command Prototype
iRet = Time.DatePart(sUnit, dTime)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sUnit | True | enum | "s" | The time unit to get |
dTime | True | expression | tRet | The 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
*/