Depending on how consistently the string is structured, you may need to use regular expressions or else (or also?) [man]explode/man on the spaces to get the numbers of interest, then do the required basic math, e.g. divide the minutes by 60, add that to the hours, then divide that by 24 to get the fractional part to add to the number of days. Just take it step by step, and when you run into a step you can't figure out how to do, let us know. 🙂