🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database
Article #2049

Re: Get folder age

#2049
From: Yuri Levashko
Date: Sun, 27 Dec 1998 00:00
27 lines
1429 bytes
>I tried to use the function FILEAGE() to get the date of creation of a
>folder , .... it does'nt work.
>
>Is there a simple way to get it ?
>

Hi!
Here is a fragment of code that gets date & time of folder's
'�:\WORK' creation.

procedure TForm1.FormClick(Sender: TObject);
var
  nRes: integer;
  fSearch: TSearchRec;
  Year, Month, Day: Word;
  Hour, Min, Sec, MSec: Word;
begin
  nRes := FindFirst('C:\WORK', faDirectory, fSearch);
  if nRes=0 then begin
    FindClose(fSearch);
    DecodeDate(FileDateToDateTime(fSearch.Time), Year, Month, Day);
    DecodeTime(FileDateToDateTime(fSearch.Time), Hour, Min, Sec, MSec);
  end;
end;

                                               BR, Yuri Levashko
Technical Details
Message-ID: <368622f3.0@ns.podlipki.ru>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <762l89$h5g@news3.euro.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f973b,dacc9c1f2bce18fe
X-Google-Attributes: gidf973b,public
X-Google-Thread: f8256,dacc9c1f2bce18fe
X-Google-Attributes: gidf8256,public
X-Google-Thread: 115d96,dacc9c1f2bce18fe
X-Google-Attributes: gid115d96,public
From: "Yuri Levashko" <lev@podlipki.ru>
Subject: Re: Get folder age
Date: 1998/12/27
Message-ID: <368622f3.0@ns.podlipki.ru>
X-Deja-AN: 426136691
References: <762l89$h5g@news3.euro.net>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3007.0
X-Trace: 27 Dec 1998 15:13:30 +0300, ns.podlipki.ru
Newsgroups: borland.public.delphi.database,borland.public.delphi.thirdparty-tools,comp.lang.pascal.delphi.components.usage