Table of Content
HAL Forum
function Time AddSeconds (
Time time,LongInt number)
Description:
Increases or decreases the hour part of a given time
Parameters:
time the time to convert
number numbers of hours to add or subtract
procedure CheckTimeMinSec(var Time timep)
begin
  if (GetSecond(timep)>=60) then begin
    timep = AddMinutes(timep,1);
    timep = AddSeconds(timep,-GetSecond(timep));  
  end;
  if (GetMinute(timep)>=60) then begin
    timep = AddHours(timep,1);
    timep = AddMinutes(timep,-GetMinute(timep));  
  end;
  return;
end;
Related topics:
««