// Convert input time string to array of standard numeric values, as per localtime() output (http://php.net/manual/en/function.localtime.php)$aTime = datefmt_localtime($oIDF, $sTime, $nPosition);// If no errors, $nPosition set to -1 after parsing, else character position of error

// If valid stringif($nPosition = -1){// Use 'tm_hour' and 'tm_min' from the $aTime array for checking against other time values...}else{// Invalid string...}?>