Formulate query for comparing timestamps

I want to write a query to compare two timestamp in bellow Image:

I want a query, to check this two Timestamp... (Only hour and minute)
and return the log if there are not equal....

Can you help me how can I write a query?

Thanks in advance