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 |
Table 30.8b - IEC 61131-3 2nd Edition.
Table 35.8b - IEC 61131-3 3rd Edition.
For other date and time functions.
For definitions of the terms used in Fernhill SCADA.