DATETOTALHOURS
PROGRAM DATETOTALHOURS_DEMO
VAR
DT1: DT;
LR1:LREAL;
END_VAR
LR1 := DATETOTALHOURS(IN1 := DT1);
END_PROGRAM
Returns number of hours since the beginning of our era (since 1.1. 0000, 00:00) for a particular date and time.
Input | Type | Description |
---|---|---|
IN1 | ANY_DATE | Input value |
Output | Type | Description |
---|---|---|
=> | LREAL | Output value |
This function is used where the number of hours between two datetime values has to be calculated.