JCL Help:GetFileCreation@string

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the date/time that the file was created.


Pascal

 function GetFileCreation(const FileName: string): TFileTime; overload;
function GetFileCreation(const FileName: string; out LocalTime: TDateTime): Boolean; overload;


Parameters

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


Return Value

The date/time the file was created. On failure the function raises an exception.


Description

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


See Also

GetFileAgeCoherence GetFileLastAccess GetFileLastWrite


About

Unit

JclFileUtils


Donator

Massimo Maria Ghisalberti


Platforms

Windows


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