STRING_TO_SYSTEMTIME
The function converts a string into the Windows SYSTEMTIME format.
FUNCTION STRING_TO_SYSTEMTIME: TIMESTRUCT
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: 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) |