From Clomosy Docs

Revision as of 07:38, 8 October 2024 by ClomosyManager (talk | contribs)

The Now function returns the current date and time in the local time zone.

Example
TRObject Syntax

var
  today : TclDateTime;
{
  today = Now(); // or Now
  ShowMessage('Today has date = '+DateToStr(today));
  ShowMessage('Today has time = '+TimeToStr(today));
}

Base Syntax

var
  today : TclDateTime;
 
begin
  today := Now(); // or Now
  ShowMessage('Today has date = '+DateToStr(today));
  ShowMessage('Today has time = '+TimeToStr(today));
end;


Output:


See Also