SYSTEMTIME_TO_FILETIME

SYSTEMTIME_TO_FILETIME 1:

The "SYSTEMTIME_TO_FILETIME" function allows the Windows system time structure to be converted to the file time format. The wDayOfWeek member of the systemTime variable is ignored.  The system time year must be greater than 1601 and cannot be greater than 30827.

FUNCTION SYSTEMTIME_TO_FILETIME : T_FILETIME

T_FILETIME

VAR_INPUT
    systemTime : TIMESTRUCT;
END_VAR

systemTime: The structure with the Windows system time requiring conversion.

Return value

Description

0

Invalid systemTime parameter.

> 0

64 bit file time.

 

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.9.0 Build > 1030

TwinCAT v2.10.0 Build > 1231

PC or CX (x86)

TcUtilities.Lib

( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically )

TwinCAT v2.10.0 Build >= 1301

CX (ARM)