Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
GetFTime Procedure
◄Summary► ◄Details► ◄Example► ◄Back►
Arguments
file_variable Typed, untyped, or text file; already open
time Receives date and time in packed 4-byte format
Description
The GetFTime procedure retrieves the date and time of the last
modification of a file. DOS maintains a directory entry that keeps
this information. DOS updates the date and time of a file when
closing the file.
The file_variable argument must be associated with an opened file
of any type. Use the Assign procedure to associate a file name with
file_variable. Open a file with the Append, Reset, or Rewrite
procedures.
The time argument receives the date and time in packed 4-byte
format. Call the UnpackTime procedure to convert the time to an
unpacked form.
GetFTime reports error conditions in DosError, defined in the Dos
unit. If no error occurred, GetFTime sets DosError to 0. The only
possible error value is 6 for "invalid file handle."