The result of subtracting one time (TIME2) from another (TIME1) is a time duration that specifies the number of hours, minutes, and seconds between the two times.
If %SECOND(TIME2) <= %SECOND(TIME1) ;
then %SECOND(RESULT) = %SECOND(TIME1) - %SECOND(TIME2).
If %SECOND(TIME2) > %SECOND(TIME1) ;
then %SECOND(RESULT) = 60 + %SECOND(TIME1) - %SECOND(TIME2). ;
%MINUTE(TIME2) is then incremented by 1.
If %MINUTE(TIME2) <= %MINUTE(TIME1) ;
then %MINUTE(RESULT) = %MINUTE(TIME1) - %MINUTE(TIME2).
If %MINUTE(TIME2) > %MINUTE(TIME1) ;
then %MINUTE(RESULT) = 60 + %MINUTE(TIME1) - %MINUTE(TIME2). ;
%HOUR(TIME2) is then incremented by 1.
%HOUR(RESULT) = %HOUR(TIME1) - %HOUR(TIME2).
For example, the result of %TIME('11:02:26') - '00:32:56' is 102930 (a duration of 10 hours, 29 minutes, and 30 seconds).