FTIME( ) Function

Returns the last modification time for a file.

FTIME(cFileName)

Parameters

  • cFileName
    Specifies the name of the file whose last modification time FTIME( ) returns. cFileName can include a path with the file name. If a path is not included with the file name, Visual FoxPro searches for the file in the default directory and in any directories or folders specified with SET PATH.

Return Value

Character

Remarks

The time that FTIME( ) returns is assigned to the file by the operating system.

Example

The following example uses FTIME( ) to display the last modification time for FoxUser.dbf, the Visual FoxPro resource file.

? FTIME('FOXUSER.DBF')  && Displays the last modification time

See Also

Reference

FDATE( ) Function
LUPDATE( ) Function
SET PATH Command

Other Resources

Functions
Language Reference (Visual FoxPro)