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

Now

Returns the current date and time.

Declaration

Source position: datih.inc line 120

function Now: TDateTime;

Description

Now returns the current date and time. It is equivalent to Date+Time.

Errors

None.

See also

Date

  

Return the current date.

Time

  

Returns the current time.

Example

Program Example18;

{ This program demonstrates the Now function }

Uses sysutils;

Begin
  Writeln ('Now : ',DateTimeToStr(Now));
End.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.