tfileage.pp 300 B

12345678910
  1. uses
  2. sysutils;
  3. begin
  4. if 3600*24*(now()-FileDateToDateTime(FileAge(paramstr(0))))>7200 then
  5. begin
  6. writeln('FileAge returns: ',FileDateToDateTime(FileAge(paramstr(0))));
  7. writeln('Compilation time and run time differ too much, SysUtils.FileAge buggy?');
  8. halt(1);
  9. end;
  10. end.