Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

Now

Returns the current date and time.

Declaration

Source position: datih.inc line 136

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.

Documentation generated on: Dec 22 2024