extract time from a time_re match.

def extract_time(match):
    """extract time from a time_re match."""
    hour = int(match.group('hour'))
    minute = int(match.group('minute'))
    return dt.time(hour, minute)