FILETIME_TO_DCTIME
This function converts the 64 bit "Windows File Time" variable to the 64 bit "Distributed Clock System Time" variable. If conversion fails the return value is zero.
FUNCTION FILETIME_TO_DCTIME: T_DCTIME
VAR_INPUT
in : T_FILETIME;
END_VAR
in: The "Windows File Time" variable to be converted.
Example:
PROGRAM P_TEST
VAR
fbSysFileTime : GETSYSTEMTIME;
ft : T_FILETIME;
dct : T_DCTIME;
END_VAR
fbSysFileTime(timeLoDW=>ft.dwLowDateTime, timeHiDW=>ft.dwHighDateTime);
dct := FILETIME_TO_DCTIME(ft);
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
TwinCAT v2.10.0 Build >= 1324 or higher | PC or CX (x86, ARM) | TcEtherCAT.Lib |