The MilliSecondOf function returns the number of milliseconds of the seconds represented by the specified TDateTime value AValue.

MilliSecondOf returns an integer value from 0 through 999 only.

Declaration: Function MilliSecondOf( const AValue : TDateTime) : Word;

Function MilliSecondOfTheSecond( const AValue : TDateTime) : Word;

An example of its use.

procedure ScriptEvent (var Value : variant);
var
vMilli : string;
begin
//Get the number of milliseconds within the specified time
vMilli := IntToStr(MilliSecondOf(Now));
LogInfo('Number of milliseconds is : ' + vMilli);
LogInfo('');
end;

MilliSecondOf has the same functionality as the MilliSecondOfTheSecond function.