The getfiledate procedure
Description
The getfiledate procedure retrieves the
modification date of a
file.
Parameter
- The first parameter is an expression of
string type or char type
which is the name of the file whose modification date is to be retrieved.
- The second parameter is a reference to a variable of
integer type or
word type which will store the year part of the date the
file was last modified.
- The third parameter is a reference to a variable of
integer type or
word type which will store the month part (1 to 12) of the
date the file was last modified.
- The fourth parameter is a reference to a variable of
integer type or
word type which will store the day part (1 to 31) of the
date the file was last modified.
Example
Suppose the file 'c:\irie\readme.txt' was last modified on Wednesday September 30, 1998 then after:
getfiledate('c:\irie\readme.txt', year, month, day)
year = 1998
month = 9
day = 30
Portability
Operating Systems: All
Standard Pascal: No