Text -> Number Variable

I have a text variable which shows me the rest time of my washing machine like this 0h28. I would like to change it to a number variable. Is that possible?