STRING_TO_SYSTEMTIME

The function converts string to Windows system time struct.
VAR_INPUT
VAR_INPUT
in : STRING(23);
END_VAR
in: The string format is: YYYY-MM-DD-hh:mm:ss.xxx, where:
- 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 system type | PLC libraries to include |
---|---|---|
TwinCAT v2.10.0 Build >= 1310 or higher | PC or CX (x86, ARM) | TcUtilities.Lib |