+-------------------------------IBM Extension--------------------------------+
The FIND-DURATION function is used to calculate a duration between:
The FIND-DURATION function returns an integer in the form of complete units of the specified duration. Any rounding is done downwards. The calculation of durations includes microseconds.
The function type is integer.
The function result is a nine-digit integer. If the function result is larger than 9 digits (999,999,999), a machine check occurs.
Format >>-FUNCTION FIND-DURATION--(--argument-1--argument-2--argument-3--)-><
Argument-1 is subtracted from argument-2. The value returned is the number of complete units of argument-3. If argument-1 is later than argument-2, the result is negative. If argument-1 is earlier than argument-2, the result is positive.
In order to determine the valid duration keywords, the following rules apply:
Related Information
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.