def date_matches(self, timestamp):
        """Determine whether the timestamp date is equal to the argument date."""
        if self.date is None:
            return False

        timestamp = datetime.fromtimestamp(float(timestamp), self.timezone)
        if self.date.date() == timestamp.date():
            return True

        return False
Determine whether the timestamp date is equal to the argument date.