[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'tiUtils' (#tiopf)

tiSetFileDate

Set a files date and time

Declaration

Source position: tiUtils.pas line 186

procedure tiSetFileDate(

  const AFileName: string;

  const ADateTime: TDateTime

);

Description

Set a files date and time.

Linux Note: Passing in a TDateTime where value is equal to 0 (zero), will succeed under Linux, but with rollover effect. TDateTime = 0 is in fact 1899-12-30 00:00:00. This will result in a file date time of 2036-02-05 06:28:16 which is 2^32 seconds from 1899-12-30 00:00:00. The Delphi TDateTime can no longer be converted to DWORD seconds.


Documentation generated on: 2017-08-16