(self, date_val)
return results
For a given date, return the array of pact_ids that are scheduled for visiting.  This will check the activate date by using the internal interval tree.
        Parameter:  datetime value
        Returns: array of pact_ids
For a given date, return the array of pact_ids that are scheduled for visiting.  This will check the activate date by using the internal interval tree.
        Parameter:  datetime value
        Returns: array of pact_ids
For a given date return the array of pact_ids that are scheduled for visiting . This will check the activate date by using the internal interval tree . Parameter : datetime value Returns : array of pact_ids
def scheduled_for_date(self, date_val):
        """
        For a given date, return the array of pact_ids that are scheduled for visiting.  This will check the activate date by using the internal interval tree.
        Parameter:  datetime value
        Returns: array of pact_ids
        """
        day_of_week = date_val.isoweekday() % 7
        if day_of_week not in self.intervals:
            return []
        else:
            pass
        day_tree = self.intervals[day_of_week]
        results = []
        day_tree.intersect(get_seconds(date_val) - .1, get_seconds(date_val),
                           lambda x: results.append(x.other))
        return results
def scheduled_for_date ( self , date_val ) : day_of_week = date_val . isoweekday ( ) % 7 if day_of_week not in self . intervals : return [ ] else : pass day_tree = self . intervals [ day_of_week ] results = [ ] day_tree . intersect ( get_seconds ( date_val ) - .1 , get_seconds ( date_val ) , lambda x : results . append ( x . other ) ) return results