def is_end_of_month(self): """ returns true, if the current day is the end of month """ return monthrange(self.year, self.month)[1] == self.day