Returns the result of an interval subtracted from a date and time.
Informal Syntax:
Formal Syntax:
SUB_DT_TIME( In1:=expression, In2:=expression )
| Parameter | Type | Description |
|---|---|---|
| In1 | DATE_AND_TIME | The date and time value. |
| In2 | TIME | The interval to subtract from the date and time value. |
In2 can be any interval value, positive or negative.
The function SUB_DT_TIME returns a DATE_AND_TIME value, the result of In1 - In2.
| Example | Return Value |
|---|---|
| SUB_DT_TIME( DT#2013-01-07-16:48:00.000, T#4h30m) | DT#2013-01-07-12:18:00.000 |
IEC 61131-3 Second Edition: Table 30.8b.
IEC 61131-3 Third Edition: Table 35.8b.
For other date and time functions.
For the meaning of terms used in Fernhill SCADA.