Utilities.FileGetDate Method

Applies to TestComplete 15.70, last modified on December 17, 2024
This method is obsolete. See the Remarks section below.

Description

The Utilities.FileGetDate method returns the date and time of the specified file as an integer value. To convert the resultant integer to a Variant value storing the date and time, use the FileDateToDateTime function.

Declaration

Utilities.FileGetDate(Handle)

Handle [in]    Required    Integer    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Handle

Specifies the handle of the file whose timestamp you want to get. This handle is returned by the FileOpen or FileCreate routine.

Result Value

The integer value that holds the OS timestamp of the specified file.

Remarks

This method is obsolete. It is supported for backward compatibility only. To get the date and time attributes of a file, use the aqFile.GetLastWriteTime or method aqFileInfo.DateLastModified property.

See Also

Working With Dates
GetLastWriteTime Method
DateLastModified Property
GetLastAccessTime Method
DateLastAccessed Property
GetCreationTime Method
DateCreated Property
OpenBinaryFile Method
OpenTextFile Method

Highlight search results