SUB_DATE_DATE

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.

InputTypeDescription
IN1 DATEInput value
IN2 DATEInput value
OutputTypeDescription
TIMEOutput value

  • © Energocentrum Plus, s.r.o. 2017 - 2024