def match(parsed_spec, dt):
    """
    Returns true if parsed_spec would trigger on the datetime dt
    """
    # dt.weekday() of monday is 0
    return (
        dt.minute in parsed_spec.minute and
        dt.hour in parsed_spec.hour and
        dt.day in parsed_spec.dom and
        dt.month in parsed_spec.month and
        dt.weekday()+1 in parsed_spec.dow
    )