STRING_TO_SYSTEMTIME
![STRING_TO_SYSTEMTIME 1:](Images/png/9007199290654475__Web.png)
The function converts a string into the Windows SYSTEMTIME format.
FUNCTION STRING_TO_SYSTEMTIME: TIMESTRUCT
VAR_INPUT
VAR_INPUT
in : STRING(23);
END_VAR
in: The string to be converted. The string must have the following format: 'YYYY-MM-DD-hh:mm:ss.xxx'
- YYYY: Year (1601..9999);
- MM: Month (01..12);
- DD: Day (01..31);
- hh: Hour (00..23);
- mm: Minute (00..59);
- ss: Second (00..59);
- xxx: Millisecond (000..999);
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) |