Registriert seit: 18. Aug 2004
Ort: Edewecht
712 Beiträge
Delphi 5 Professional
|
Re: Problem mit Funktion: GetFileLastAccessTime
1. Mai 2005, 17:50
Delphi-Quellcode:
function GetFileLastAccess(const FileName: String): TDateTime;
var
SR: TSearchRec;
stUTC, stLocal: TSystemTime;
begin
Result := 0;
if FindFirst(FileName, faAnyFile, SR) = 0 then
begin
if FileTimeToSystemTime(SR.FindData.ftLastAccessTime, stUTC) then
if SystemTimeToTzSpecificLocalTime(nil, stUTC, stLocal) then
with stLocal do
Result := EncodeDateTime(wYear, wMonth, wDay, wHour, wMinute, wSecond, wMilliseconds);
FindClose(SR);
end;
end;
Ciao, Sprint.
"I don't know what I am doing, but I am sure I am having fun!"
|
|
Zitat
|