Attention
IronPLC implements many parts of the IEC 61131-3 standard and is working toward full Structured Text support. Key features still missing include structures and user defined function blocks.
DT_TO_TOD¶
Extracts the time-of-day portion from a date-and-time value.
IEC 61131-3 |
Section 2.5.1.5 |
Support |
Supported |
Signatures¶
# |
Input (IN) |
Return Type |
Support |
|---|---|---|---|
1 |
|
|
Supported |
Description¶
Extracts the time-of-day portion from IN, returning a TIME_OF_DAY
value in milliseconds since midnight.
The long-form alias DATE_AND_TIME_TO_TIME_OF_DAY is also supported.
Example¶
See Also¶
DT_TO_DATE — extract date from datetime
CONCAT_DATE_TOD — combine date and time-of-day