Utilities.FileAge Method

Applies to TestComplete 14.40, last modified on April 22, 2021
This method is obsolete. See the Remarks section below.

Description

Use the Utilities.FileAge method to get the OS timestamp of the specified file. The function returns the date and time as an integer value. To convert it to a Variant value storing the date and time, use the FileDateToDateTime method.

Declaration

Utilities.FileAge(FileName)

FileName [in]    Required    String    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

FileName

Specifies the file whose OS timestamp you want to get.

Result Value

An integer value storing the OS timestamp of the specified file. If the specified file does not exist, the function returns -1.

Remarks

This method is obsolete. It is supported for backward compatibility only. To get the file’s timestamp, use the aqFile.GetLastWriteTime or aqFileInfo.DateLastModified method.

See Also

GetLastWriteTime Method
DateLastModified Property
GetLastAccessTime Method
DateLastAccessed Property
GetCreationTime Method
DateCreated Property

Highlight search results