The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_filesys
Class: none
Declaration: function GetFileDates (FName: string; var CreationDate, LastAccessDate, LastWriteDate: TDateTime): integer;

The function GetFileDates retrieves the file dates of the file FName and returns it in the variable parameters CreationDate, LastAccessDate and LastWriteDate. Please note that the LastWriteDate parameter corresponds to the "Modified" time in the Windows file properties dialog, the LastAccessDate corresponds to the "Accessed" time.

The function returns the following error codes:

 0 ... everything is OK
-1 ... cannot access the specified file (for various reasons)

Hint: The function GetFileDates is only available for the compilers Rad Studio 10.2 Tokyo, or higher.

Last Update: 2020-Aug-20