I'm looking for something in JodaTime or similar which will let me obtain a Duration from a string passed in.
My string will look like: "00:04:23" (HH:MM:SS) I'd like to be able to get that converted to other time units easily.
Unfortunately Duration.parse() from JodaTime doesn't work. Is there another method which would do this, or do I need to roll my own?
As requested some examples:
01:34:22-> 1 hour 34 minutes and 22 seconds00:04:23-> 4 minutes and 23 seconds00:00:46-> 46 seconds
It's easy to roll own, but was curious if there was a built in for that, which I was just missing.