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

GetEpochTime

Return the current unix time

Declaration

Source position: oldlinux.pp line 1317

function GetEpochTime: LongInt;

Description

returns the number of seconds since 00:00:00 gmt, january 1, 1970. it is adjusted to the local time zone, but not to DST.

Errors

no errors

See also

EpochToLocal

  

Convert epoch time to local time

GetTime

  

Return current system time

Example

Program Example1;

{ Program to demonstrate the GetEpochTime function. }

Uses oldlinux;

begin
  Write ('Secs past the start of the Epoch (00:00 1/1/1980) : ');
  Writeln (GetEpochTime);
end.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.