mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 08:28:08 +02:00
22 lines
335 B
ObjectPascal
22 lines
335 B
ObjectPascal
uses
|
|
sysutils;
|
|
|
|
var
|
|
S : string;
|
|
SR : TSearchRec;
|
|
r : longint;
|
|
begin
|
|
r:=FindFirst('*.*',faAnyFile,SR);
|
|
while r=0 do
|
|
begin
|
|
r:=FileAge(SR.Name);
|
|
if r<>-1 then
|
|
begin
|
|
S:=DateTimeToStr(FileDateToDateTime(r));
|
|
Writeln(SR.Name,' has Date ',S);
|
|
end;
|
|
r:=FindNext(SR);
|
|
end;
|
|
FindClose(SR);
|
|
end.
|