The getfiletime procedure

Description

The getfiletime procedure retrieves the modification time of a file.

Parameter

  1. The first parameter is an expression of string type or char type which is the name of the file whose modification time is to be retrieved.
  2. The second parameter is a reference to a variable of integer type or word type which will store the hour the file was last modified.
  3. The third parameter is a reference to a variable of integer type or word type which will store the minute the file was last modified.
  4. The fourth parameter is a reference to a variable of integer type or word type which will store the second the file was last modified.

Example

Suppose the file 'c:\irie\readme.txt' was last modified at 2:45:05 P.M. then after:

    getfiletime('c:\irie\readme.txt', hour, minute, second)

    hour = 14
    minute = 45
    second = 5

Portability

Operating Systems: All
Standard Pascal: No