STRING_TO_SYSTEMTIME

STRING_TO_SYSTEMTIME 1:

The function converts a string into the Windows SYSTEMTIME format.

FUNCTION STRING_TO_SYSTEMTIME: TIMESTRUCT

STRING_TO_SYSTEMTIME 2: Inputs

VAR_INPUT
    in : STRING(23);
END_VAR

Name

Type

Description

in

STRING(23)

The string to be converted. The string must have the following format:
'YYYY-MM-DD-hh:mm:ss.xxx'

Requirements

Development environment

Target platform

PLC libraries to be integrated (category group)

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_Utilities (System)