Now
Returns the current date and time.
Declaration
Source position: datih.inc line 130
function Now : TDateTime;
Description
Now returns the current date and time. It is equivalent to Date+Time.
Errors
None.
See also
Name | Description |
---|---|
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.