subtract

subtract(time: Time): TimeStampInterval;

The subtract method of the Time primitive type returns the interval between the receiver and the value of the time parameter as a TimeStampInterval value.

The following example shows the use of the subtract method.

vars
    now, hourFromNow : Time;
begin
    hourFromNow:= now + 60 * 60 * 1000;
    write hourFromNow.subtract(now);  // Outputs "0:01:00:00.000"
end;