SUB_DATE_DATE

Compares two dates and yields the difference in TIME format.
lrsf_sdd1
Arguments
DAT1
DAT1
DATE
First date in a comparison
DAT2
DAT2
DATE
Second date in a comparison
SUB_DATE_DATE
TIME
TIME
Difference in TIME format between DAT1 and DAT2. The possible date difference values range from t#0h to t#1193h2m47s294ms inclusively.
A value of 1193h2m47s295ms indicates an error for either of these conditions:
- DAT1 is less than DAT2
- The difference between DAT1 and DAT2 is greater than 1193h2m47s294ms
Example
(* FBD Program using "SUB_DATE_DATE" Function *)
lrsf_sdd2
(* ST Equivalence: *)
timResult := SUB_DATE_DATE (datVal1, datVal2);
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal