The *ELAPSED TIME built-in function calculates the elapsed time between a beginning time and an ending time. It is the converse of the *TIME INCREMENT built-in function.
The *ELAPSED TIME built-in function performs the operation:
*Elapsed Time = *Time1 - *Time2
The result is positive if *Time1 is after *Time2; it is negative if *Time1 is before *Time2.
There are four parameters for this function type:
The valid values for *Time unit and the effect each has on the meaning of *Elapsed time are shown in the following table.
|
*Time Unit Values |
Effect on the *Elapsed Time Parameter |
|---|---|
|
*SECONDS |
The result is given as an integer specifying the number of elapsed seconds. |
|
*MINUTES |
The result is given as the number of elapsed minutes; partial minutes are ignored. |
|
*HOURS |
The result is given as the number of elapsed hours; partial hours are ignored. |
|
*HHMM |
The result is given as the number of elapsed hours and minutes in HHMM format. |
|
*HHMMSS |
The result is given as the number of elapsed hours, minutes, and seconds in HHMMSS format. |
|
Copyright © 2014 CA.
All rights reserved.
|
|