From Clomosy Docs

Revision as of 10:09, 28 February 2023 by ClomosyManager (talk | contribs) (Created page with " function Now():TclDateTime; The Now function returns the current date and time in the local time zone. '''Example:'''<br> '''var''' today : TclDateTime;<br> '''begin'''<br> today := Now(); // or Now ShowMessage('Today has date = '+DateToStr(today)); ShowMessage('Today has time = '+TimeToStr(today));<br> '''end;''' '''Output:'''<br> Today has date = 28.02.2023 Today has time = 13:08:53")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

function Now():TclDateTime;

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

Example:

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

Output:

Today has date = 28.02.2023
Today has time = 13:08:53