sys/shell: refactor _parse_time