Say it took someone 3 minutes and 45 seconds to complete a task.
I’d represent that as 3:45.
But what I need to do is, assuming I’m given 3:45, convert that to the number of seconds it took.
So when given 3:45, I want to convert that to 225.
This would need to work with Ruby 1.8.7.
You could use something like Dave suggested, or if you need more stuff, there’s a duration library that does this stuff.
It would look like: