Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (H-K)
Guardian Procedure Calls Reference Manual522629-013
7-46
INTERPRETINTERVAL Procedure
returns either the number of days in the interval of time (0D or greater), or an error
indication of -1D if
time is negative.
time input
FIXED:value
specifies the 4-word fixed time interval.
hours output
INT:ref:1
returns the number of hours in the interval of time (0 or greater).
minutes output
INT:ref:1
returns the number of minutes in the interval of time (0 or greater).
seconds output
INT:ref:1
returns the number of seconds in the interval of time (0 or greater).
milsecs output
INT:ref:1
returns the number of milliseconds in the interval of time (0 or greater).
microsecs output
INT:ref:1
returns the number of microseconds in the interval of time (0 or greater).
Example
FIXED START, FINISH;
INT(32) DAYS;
INT HRS;
INT MIN;
INT SEC;
.
.
DAYS := INTERPRETINTERVAL ( FINISH - START, HRS, MIN, SEC );
IF DAYS < 0D THEN ...
Related Programming Manual
For programming information about the INTERPRETINTERVAL procedure, refer to the
Guardian Programmer’s Guide.