Sign in Join
FPDoc Onlineexperiment

Now function

In unit sysutils

Returns the current date and time.

Declaration

pascal
function Now: TDateTime

Description

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

Errors

None.

See also

Example: ex18

pascal
Program Example18;

{ This program demonstrates the Now function }

Uses sysutils;

Begin
  Writeln ('Now : ',DateTimeToStr(Now));
End.

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