Converting a time string to a number

How do I convert a string (“hh mm ss”) to an integer in a CSV spreadsheet??