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

GetDate

Return the system date

Declaration

Source position: oldlinux.pp line 1323

procedure GetDate(

  var Year: Word;

  var Month: Word;

  var Day: Word

);

Description

Returns the current date.

Errors

None

See also

GetEpochTime

  

Return the current unix time

GetTime

  

Return current system time

GetDateTime

  

Return system date and time

EpochToLocal

  

Convert epoch time to local time

Example

Program Example6;

{ Program to demonstrate the GetDate function. }

Uses oldlinux;

Var Year, Month, Day : Word;

begin
 GetDate (Year, Month, Day);
 Writeln ('Date : ',Day:2,'/',Month:2,'/',Year:4);
end.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.