我在设计一个过程是,用到了显示时间的函数
具体如下:
procedure TFMain.LocalChangeDirExecute(Sender: TObject);
var
  sr: TSearchRec;
  Item : TListItem;
begin
  SetCurrentDir(LocalPath);
  LocalFileList.Clear;
  if FindFirst('*', faDirectory, sr) = 0 then
  begin
    repeat
      if ((sr.Attr and faDirectory) = sr.Attr) and (sr.Name <> '.') and (sr.Name <> '..') then
      begin
        Item:=LocalFileList.Items.Add;
        Item.ImageIndex:=0;
        Item.Caption:=sr.Name;
        Item.SubItems.Add('文件夹');
        Item.SubItems.Add(IntToStr(sr.Size));
        Item.SubItems.Add(DateToStr(sr.Time));
      end;
    until FindNext(sr) <> 0;
    FindClose(sr);
  end;其他的属性都正确,可是时间显示老是有问题,请问谁能帮忙解释一下