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.
SUB_DT_DT¶
Returns the difference between two date-and-time values as a duration.
IEC 61131-3 |
Section 2.5.1.5.8 |
Support |
Supported |
Signatures¶
# |
Input (IN1) |
Input (IN2) |
Return Type |
Support |
|---|---|---|---|---|
1 |
|
|
|
Supported |
Description¶
Returns the time difference IN1 minus IN2 as a TIME duration
in milliseconds. The internal subtraction is in seconds, then converted
to milliseconds.
Example¶
See Also¶
ADD_DT_TIME — add duration to datetime
SUB_DT_TIME — subtract duration from datetime