GetFileDate()

语法

Result = GetFileDate(Filename$, DateType)
概要
Returns the date of the specified file.

参数

Filename$ The file to get the date from.
DateType The kind of date to return. It can be one of the following values:
  #PB_Date_Created : returns the file creation date.
  #PB_Date_Accessed: returns the last file access date.
  #PB_Date_Modified: returns the last file modification date.

返回值

Returns the requested date in the format of the PureBasic Date library.

Remarks

On Linux and Mac OSX, the date returned for #PB_Date_Created is the same as the date for #PB_Date_Modified, because most file systems do not store a file creation date.

参阅

SetFileDate(), DirectoryEntryDate()

已支持操作系统

所有

<- GetFileAttributes() - FileSystem Index - GetFilePart() ->