ScriptCore3.Time

From Soldat Community Wiki
Jump to: navigation, search
 function Time: TDateTime
 Result: Current Time (encoded)

Description

This function will return TDateTime representing current time (not including date)

Example

var
  curr: TDateTime;

begin
  curr := Time();
  WriteLn(FormatFloat('##0.###',100*curr)+'% of the day is gone already!');
  WriteLn('This means it''s '+FormatDateTime('hh:nn:ss:zzz',curr));
end.