The SecondOf function returns the seconds of the minute represented by the specified TDateTime value AValue.

SecondOf returns an integer value from 0 through 59 only.

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

Function SecondOfTheMinute( const AValue : TDateTime) : Word;

An example of its use.

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

SecondOf has the same functionality as the SecondOfTheMinute function.