def _day_has_passed(self, date):
        """"Checks to see if date has passed.

        Args:
          date: Datetime object to compare to today.

        Returns:
          True if date is earlier than today, False otherwise.
        """
        today = self.today()
        return (date.month < today.month or
                (date.month == today.month and date.day < today.day))
dataset/ETHPy150Open vinitkumar/googlecl/src/googlecl/calendar/date.py/DateParser._day_has_passed/original