Str2time

Str2time is a minimal utility to convert a string representation of time into a certain amount of seconds. It is intended to use when you need to input a time lapse in a human way, as string.

It can convert the following formats:

"1:30"     => 5400
"1h 30m"    => 5400