Assuming the string you want to check is $1:
Code:
if ($time($ctime($date $1),hh:nntt) == $1) { echo -a $1 matches format "hh:nntt" }