GetFileTimes Method (RUNTIME)
10.6A
The GetFileTimes method retrieves the OS date and time that a file was created, last accessed, and last modified. This method uses the following format:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
Optional. A Program Execution Label.
Required. A RUNTIME object.
Optional. A Character String Variable that receives the current directory name and path being used by the RUNTIME object.
Flags Affected: EOS, OVER, ZERO
Note the following:
The EOS flag is always set to FALSE.
The ZERO flag is set to be TRUE if the {return} value is zero. Otherwise, the ZERO flag is set to be FALSE.
The OVER flag is set to be TRUE if the {return} variable is too small to receive the method result without truncation. Otherwise,The OVER flag is set to be FALSE.
If the method executes successfully, the {return} value is zero. If the method fails, the {return} value is a non-zero value described as follows:
|
Return Value |
Description |
|
1 |
The GetFileTimes method is not supported by the PL/B runtime. |
|
nnnn |
Windows OS error code values. See the 'Sunbelt PL/B Runtime Reference' under "Error Messages\O/S Error Codes". |
Example:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See Also: RUNTIME, RUNTIME Methods, Method Syntax
![]() |