Skip to content

Now ​

Similar to the Date function, Now also returns the current date as a TDateTime data type, but it includes the time of the call, accurate to the millisecond.

Declaration: function Now : TDateTime

An example.

pascal
procedure OnMapEvent(var Value:Variant);
begin
 //the current date and time accurate to a millisecond
  Value := Now;
end;

Please also refer to DateTime (TDateTime) for additional information.