Skip to main content

Convert-Unix-Timestamp-to-Time

Command Description

Convert a Unix timestamp to time data (the time elapsed since January 1, 1 900)

Command Prototype

dRet = Time.FromUnixTime(dTime, bMS)

Parameter Description

ParameterRequiredTypeDefaultDescription
dTimeTrueexpressiondTimeThe Unix timestamp to be converted
bMSTruebooleanNoneWhether a Unix timestamp is millisecond precision, the default is false

return

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

Demo

Dim   dRet 
dRet = Time.FromUnixTime(44601.623032407, false)
TracePrint (dRet)
/**
dRet = 25569.333333334
*/