This function returns True if the given time parts would return a valid time.
With a similar functionality to IsValidDate, this function is useful for testing time parts prior to passing them to the EncodeDateTime function.
Declaration: function IsValidTime(const AHour: Word; const AMinute: Word; const ASecond: Word; const AMilliSecond: Word): Boolean
An example of code using this function.