def active(intervals, now):
    """Return True if the minute of the week of *dt* is in *intervals*."""
    mow = now.weekday() * 24 * 60 + now.hour * 60 + now.minute
    for start, end in intervals:
        if start <= mow < end:
            return True
    return False
