help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

DateTimeToFileDate

Convert a TDateTime value to a file age (integer)

Declaration

Source position: datih.inc line 125

function DateTimeToFileDate(

  DateTime: TDateTime

):LongInt;

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

Time

  

Returns the current time.

Date

  

Return the current date.

FileDateToDateTime

  

Convert a FileDate value to a TDateTime value.

DateTimeToSystemTime

  

Converts a TDateTime value to a systemtime structure.

DateTimeToTimeStamp

  

Converts a TDateTime value to a TimeStamp structure.

Example

Program Example2;

{ This program demonstrates the DateTimeToFileDate function }

Uses sysutils;

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

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505