====== SUB_DATE_DATE ====== {{:en:mervis-ide:35-help:sub_date_date.png}} ===== Function name ===== SUB_DATE_DATE ===== ST call ===== PROGRAM SUB_DATE_DATE_DEMO VAR DATE1,DATE2: DATE; TIME1: TIME; END_VAR TIME1:= SUB_DATE_DATE(IN1:=DATE1, IN2:=DATE2); END_PROGRAM ===== Description ===== Subtracts the input variables, OUT = IN1 - IN2. The inputs are DATEs, the output is TIME.\\ ===== Inputs ===== |Input|Type|Description| |IN1 |DATE|Input value| |IN2 |DATE|Input value| ===== Outputs ===== |Output|Type|Description | |=> |TIME|Output value| ===== Application example ===== {{:en:mervis-ide:35-help:sub_date_date_example.png}}