in src/guclimate/core/parse_input.py [0:0]
def parseTime(input: str):
# Match single time
pattern = re.compile(r"^[0-9]{2}:[0-9]{2}$")
if pattern.match(input) is not None:
return [input]
# Match comma separated times
commaSeparated = parseCommaSeparatedTimes(input)
if commaSeparated is not None:
return commaSeparated
# Match time range
range = parseTimeRange(input)
if range is not None:
return range
raise ValueError(f"Unable to parse time input: {input}")