remove parse_duration()

parse_duration() was only used once and only called parse_time()
add tests