My guess is that temp.getTime() returns a String, right?
To compare Strings (and other objects) for equivalency, you need to use the .equals() method. So, instead of:

if(temp.getTime()=="11:52"){...