public static function checkTime($hour, $minute, $second)
    {
        return $hour >= 0 && $hour < 24 && $minute >= 0 && $minute < 60 && $second >= 0 && $second < 60;
    }
public static function checkTime($hour, $minute, $second)
    {
        return $hour >= 0 && $hour < 24 && $minute >= 0 && $minute < 60 && $second >= 0 && $second < 60;
    }
public static function checkTime ( $ hour , $ minute , $ second ) { return $ hour >= 0 && $ hour < 24 && $ minute >= 0 && $ minute < 60 && $ second >= 0 && $ second < 60 ; }
Checks whether a time is valid.

@param int $hour   The hour
@param int $minute The minute
@param int $second The second

@return bool Whether the time is valid

@internal
Checks whether a time is valid .