def _apply_closed_timerange(self, working_list):
        """
        Apply separated filtering for a closed time range.
        In case filtering is not applied None is returned.
        """
        if self.closed_timerange:
            newer_than, older_than = self.get_timebased()
            if older_than['value'] < newer_than['value']:
                print 'ERROR: Wrong time period newer_than parameter must be > older_than.'
                sys.exit(1)
            if not self.all_items:
                # We don't apply time range filtering in case of all_* options.
                logger.debug('Applying time range filters, result will be intersection\n'
                             'newer_than: %s\nolder_than: %s', newer_than, older_than)
                newer_range = set(apply_filter(working_list, **newer_than))
                older_range = set(apply_filter(working_list, **older_than))
                result_list = list(newer_range & older_range)
                return result_list
dataset/ETHPy150Open StackStorm/st2contrib/packs/elasticsearch/actions/lib/items_filter.py/ItemsFilter._apply_closed_timerange/swapped operands of `<`