STRING_TO_SYSTEMTIME

 

STRING_TO_SYSTEMTIME 1:

The function converts string to Windows system time struct.

FUNCTION STRING_TO_SYSTEMTIME: TIMESTRUCT

TIMESTRUCT

VAR_INPUT

VAR_INPUT
    in : STRING(23);
END_VAR

in: The string format is: YYYY-MM-DD-hh:mm:ss.xxx, where:

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.10.0 Build >= 1310 or higher

PC or CX (x86, ARM)

TcUtilities.Lib