Skip to content

Time

Returns the current time.

Declaration

Source position: datih.inc line 129

  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

Name Description
Date Return the current date.
Now Returns the current date and time.

Example

Program Example23;
{ This program demonstrates the Time function }
Uses sysutils;
Begin
  Writeln ('The time is : ',TimeToStr(Time));
End.