Skip to content

Flow documentation · legacy product

IsValidTime ​

Declaration ​

function IsValidTime(const AHour: Word; const AMinute: Word; const ASecond: Word; const AMilliSecond: Word): Boolean

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := IsValidTime(15, 45, 23, 562); //returns true if the given time parts would create a valid time
end;

Description ​

Returns True if the given time parts would return a valid time. Useful for testing Time parts prior to passing them to the EncodeDateTime function.