There are two time functions. One, TIMESTR, is a SET function because the result is a time string, and the other, TIMEDIFF, is a CALC function because the result is a numeric.
calc %xx=timediff(%start;%end)
The start and end times are of the form HH:MM:SS.
The result is the number of seconds between the
start and end times.
set %yy=timestr(%xx)
The input variable %xx is a number of seconds. The
result is the time in HH:MM:SS form. For example, if
%xx was 3661, %yy would be 01:01:01. That's one
hour, one minute, and one second.
A good example of the fact that a term or factor in a formula can itself be a function is illustrated by combining the above two steps into one:
set %elapsed=timestr(timediff(%start;%end))
where the start and end times are in HH:MM:SS form and so is the result, that is, the elapsed time.
The TIMING
command can be used to obtain the value of the current time in a variable in HH:MM:SS format.