fptime function
Return the current Unix time.
Declaration
function FpTime(var tloc: TTime): TTimeDescription
FpTime returns the number of seconds since 1970-01-01T00:00Z
ignoring leap seconds.
It is adjusted to the local time zone, but not to DST (daylight savings time).
The result is also stored in
tloc if it is specified.
Errors
On error, -1 is returned. Extended error information can be retrieved using fpGetErrno.
See also
Example: ex1
Program Example1;
{ Program to demonstrate the fptime function. }
Uses baseunix;
begin
Write ('Second past the start of the Epoch (1970-01-01T00:00): ');
Writeln (fptime);
end.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
