interpreter pattern from_hourfrom_minute [int(xfor in self from_time split(":")to_hourto_minute [int(xfor in self to_time split(":")hour_in_range from_hour <hour_now to_hour begin_edge hour_now =from_hour and minute_now from_minute end_edge hour_now =to_hour and minute_now to_minute return any(hour_in_rangebegin_edgeend_edgeclass todayisaweekday(object)def __init__(self)pass def evaluate(selftab)week_days "monday""tuesday""wednesday""thursday""friday"return datetime datetime today(weekday(in week_days class todayisaweekedday(object)def __init__(self)pass def evaluate(selftab)weekend_days "saturday""sunday"return datetime datetime today(weekday(in weekend_days class dayoftheweek(object)def __init__(selfname)self name name