SUB_DATE_DATE
PROGRAM SUB_DATE_DATE_DEMO
VAR
DATE1,DATE2: DATE;
TIME1: TIME;
END_VAR
TIME1:= SUB_DATE_DATE(IN1:=DATE1, IN2:=DATE2);
END_PROGRAM
Subtracts the input variables, OUT = IN1 - IN2. The inputs are DATEs, the output is TIME.
Input | Type | Description |
---|---|---|
IN1 | DATE | Input value |
IN2 | DATE | Input value |
Output | Type | Description |
---|---|---|
=> | TIME | Output value |