I have the time in the format of 11:25pm

Is there a quick function that can compare the string above, with the current time and check if its before now, now, or after now?

I can do it the long winded way by extracting the hours,mins etc and comparing but I was hoping there would be a function already.

Cheers