def get_timebased(self):
        """
        Get timebased specific filters.

        :rtype: tuple(newer_than, older_than)
        """
        result = {}
        for f in self.built_list:
            if f.get('method', None) in ('newer_than', 'older_than'):
                result[f['method']] = f
                if len(result) == 2:
                    break

        return (result.get('newer_than', None), result.get('older_than', None))
dataset/ETHPy150Open StackStorm/st2contrib/packs/elasticsearch/actions/lib/items_filter.py/ItemsFilter.get_timebased/original