Table of Content
HAL Forum
function LongInt TimeToMinutes (
time TimeVal)
Description:
Converts time variable value to amount of minutes from 00:00:00.
Parameters:
TimeVal The time value that will be converted to minutes
external function LongInt TimeToMinutes(Time);

function longint DateTimeDiff(date d1,time t1,date d2,time t2)
begin
  longint days;
  longint res;
  
  days = DateDiff(d1,d2);
  res = TimeToMinutes(t1) - TimeToMinutes(t2);
  res = res + (days * 1440);
  
  DateTimeDiff = res;
  return;
end;
Related topics:
««