StructToTime
Syntax
StructToTime(ftoDate: FTODate): numberParameters
Return Value
Description
Example
// Convert current time to timestamp
const currentDate = this.api.TimeCurrent();
const timestamp = this.api.StructToTime(currentDate);
console.log(`Current time as timestamp: ${timestamp}`);
// Convert and compare two dates
const date1 = this.api.TimeCurrent();
const timestamp1 = this.api.StructToTime(date1);
console.log(`Current time as timestamp: ${timestamp1}`);Last updated