Converting HH:MM:SS or MM:SS to hms

parse_duration(x)

Arguments

x

A duration

Value

A numeric of durations in hms::hms().

Note

Only needed to parse durations in The Incomparable stats.txt files.

Examples

parse_duration("32:12")
#> 00:32:12
parse_duration("32:12:04")
#> 32:12:04