如何转换TSearchrec的时间值(100分)

  • 主题发起人 主题发起人 jsq
  • 开始时间 开始时间
J

jsq

Unregistered / Unconfirmed
GUEST, unregistred user!
各位大虾,用findfirst和findnext得到文件时间时,
时间值好象需要转换的,请各位指点一下,该如何进行
转换呢?谢谢
 
function FileDateToDateTime(FileDate: Integer): TDateTime;
 
FileDateToDateTime
&
DateTimeToFileDate
 
function FileDateToDateTime(FileDate: Integer): TDateTime;
Description
Use FileDateToDateTime to convert ado
S date-and-time value to a TDateTime value, which is the representation of date-and-time values used by the VCL.
For example, use FileDateToDateTime to convert the file timestamp returned by FileGetDate or FileAge to a value that can be used with other VCL routines and properties. You may also need to use FileDateToDateTime to convert the Time field of the TSearchRec record used by the FindFirst and FindNext functions.
 
同意Croco,WuWZY
 
多人接受答案了。
 
后退
顶部