Skip to content

MinuteOf (MinuteOfTheHour) ​

The MinuteOf function returns the minute of the hour represented by the specified TDateTime value AValue.

MinuteOf returns an integer value from 0 through 59 only.

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

Function MinuteOfTheHour( const AValue : TDateTime) : Word;

An example of its use.

pascal
procedure ScriptEvent (var Value : variant);
var
  vMin : string;
begin
 //Get the minute within the specified time
  vMin := IntToStr(MinuteOf(Now));
  LogInfo('Minute is        : ' + vMin);
  LogInfo('');
end;

MinuteOf has the same functionality as the MinuteOfTheHour function.