def between(self, start=None, end=None):
        """
        Select all transactions between the specified dates.

        The dates may be specified as date objects, standard date strings ('2015-01-15') or
        human-readable strings ('two weeks ago').

        Parameters
        ----------
        start : date or str (optional)
        end : date or str (optional)

        Returns
        -------
        transactions : Transactions
        """
        transactions = list(self)
        if start is not None:
            transactions = [t for t in transactions if t.date >= self._parse_date(start)]
        if end is not None:
            transactions = [t for t in transactions if t.date <= self._parse_date(end)]
        return type(self)(transactions)
dataset/ETHPy150Open aldanor/pynab/ynab/models.py/Transactions.between/original