Subtraction of duration from date & time
This function block subtracts a duration from a time value of the data type Date&Time. The output value is a time value of the type Date&Time.
If the difference is below the limit of the time value Date&Time (1-1-1970 00:00:00) the value 1-1-1970 00:00:00 is given back as output value.
Signals
Name | I/O | Type(s) | Function |
---|---|---|---|
IN1 | I | DT | Date&time |
IN2 | I | TIME | Duration |
OUT | O | DT | Calculated value date&time |