Sign in Join
FPDoc Onlineexperiment

Time function

In unit sysutils

Returns the current time.

Declaration

pascal
function Time: TDateTime

Description

Time returns the current time in TDateTime format. The date part of the TDateTimeValue is set to zero.

Errors

None.

See also

Example: ex23

pascal
Program Example23;

{ This program demonstrates the Time function }

Uses sysutils;

Begin
  Writeln ('The time is : ',TimeToStr(Time));
End.

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