Convert-to-Unix-Timestamp
Command Description
Converts a time data (obtained by the get time command) to a Unix timestamp
Command Prototype
iRet = Time.ToUnixTime(dTime, bMS)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
dTime | True | expression | dTime | The time data to be converted, the default is the current time |
bMS | True | boolean | None | Whether to convert to a timestamp of millisecond precision; the default is false |
return
iRet,The variable used to save the output of the command.
Demo
Dim iRet
iRet = Time.ToUnixTime(44601.642673611, false)
TracePrint(iRet)
/**
iRet = 1644391526
*/