Previous Topic: Time Details

Next Topic: Calculation Assumptions and Examples for Date Built-In Functions

Time Increment

The *TIME INCREMENT built-in function lets you add a quantity to a given time. It is the converse of the *ELAPSED TIME built-in function.

The *TIME INCREMENT built-in function performs the operation:

*Time1 = *Time2 + *Elapsed Time

There are four parameters for this function type:

The possible values for the *Time unit parameter and the effect of each on the meaning of *Elapsed time are shown in the following table.

*Time Unit Values

Effect on the *Elapsed Time Parameter

*SECONDS

An integer specifying the number of seconds to add to the specified time (*Time2).

*MINUTES

An integer specifying the number of minutes to add to the specified time (*Time2).

*HOURS

An integer specifying the number of hours to add to the specified time (*Time2).

*HHMM

The number of hours and minutes, in HHMM format, to add to the specified time (*Time2).

*HHMMSS

The number of hours, minutes, and seconds, in HHMMSS format, to add to the specified time (*Time2