Table of Content
HAL Forum
procedure AddMinutesToDateTime (
var date DateVal,var time TimeVal,longint AddMinutes)
Description:
Increases the date and time variables by a specified amount of minutes.
Parameters:
DateVal The date value that will receive the increment defined in minutes
TimeVal The time value that will receive the increment defined in minutes
AddMinutes The amount of minutes that will be added to time/date
external procedure AddMinutesToDateTime(var date,var time,longint);

function boolean UniversityCacheRecordExpired(record UniversityURLCacheVc UUCr)
begin
  date d;
  time t;
  boolean res;
  
  res = false;
  d = UUCr.UDate;
  t = UUCr.UTime;
  AddMinutesToDateTime(d,t,UniversityCacheAgeLimit);
        
  if (d<=CurrentDate) then begin
    if (d==CurrentDate) then begin
      if (t<=CurrentTime) then begin
        res = true;
      end;
    end else begin
      res = true;
    end;
  end;
  UniversityCacheRecordExpired = res;
  return;
end;

Related topics:
««