Makes _parse_time_from_input mo' pythonic.