Sign in Join
FPDoc Onlineexperiment

DateTimeToFileDate function

In unit sysutils

Convert a TDateTime value to a file age (integer).

Declaration

pascal
function DateTimeToFileDate(DateTime: TDateTime): Int64

Description

DateTimeToFileDate function converts a date/time indication in TDateTime format to a filedate function, such as returned for instance by the FileAge function.

Errors

None.

See also

Example: ex2

pascal
Program Example2;

{ This program demonstrates the DateTimeToFileDate function }

Uses sysutils;

Begin
  Writeln ('FileTime of now would be: ',DateTimeToFileDate (Now));
End.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.