24h Char Time To Integer From DS3231 Help!!

Anyone got any ideas how I can get this char function output to a variable that I can use in If statements.
I can only seem to use it in Serial.print

Thanks in advance