JCL Help:GetFileLastWrite@string

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the date/time that the file was last written to.


Pascal

 function GetFileLastWrite(const FileName: string): TFileTime; overload;
function GetFileLastWrite(const FileName: string; out LocalTime: TDateTime): Boolean; overload;
function GetFileLastWrite(const FileName: string; out TimeStamp: Integer; ResolveSymLinks: Boolean = True): Boolean; overload;
function GetFileLastWrite(const FileName: string; out LocalTime: TDateTime; ResolveSymLinks: Boolean = True): Boolean; overload;
function GetFileLastWrite(const FileName: string; ResolveSymLinks: Boolean = True): Integer; overload;


Parameters

Parameters Description
const FileName: string The name of the file for which to retrieve the time of last write.


Return Value

The date/time the file was last written to, in TFileTime format. On failure the function raises an exception.


Description

GetFileLastWrite returns the date/time that the specified file was last written to. The return value is a UTC based TFileTime value which can be converted to the familiar TDateTime by using FileTimeToDateTime function.


See Also

GetFileAgeCoherence GetFileLastAccess GetFileCreation


About

Unit

JclFileUtils


Donator

Massimo Maria Ghisalberti


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page