Delphi kann per se erstmal nicht damit umgehen scheint mir.
Also
IsValidTime scheint damit kein Problem zu haben:
Delphi-Quellcode:
function IsValidTime(const AHour, AMinute, ASecond, AMilliSecond: Word): Boolean;
begin
Result := ((AHour < HoursPerDay) and (AMinute < MinsPerHour) and
(ASecond < SecsPerMin) and (AMilliSecond < MSecsPerSec)) or
((AHour = 24) and (AMinute = 0) and // midnight early next day
(ASecond = 0) and (AMilliSecond = 0));
end;