def is_date_format(self, format=None): """Check if the number format is actually representing a date.""" if format is None: format = self._format_code if any([x in format for x in self.DATE_INDICATORS]): if self.BAD_DATE_RE.search(format) is None: return True return False
def is_date_format(self, format = None): """Check if the number format is actually representing a date.""" if format is None: format = self._format_code if any([x in format for x in self.DATE_INDICATORS]): if self.BAD_DATE_RE.search(format) is None: return True return False
def is_format_date(cls, format): return any([x in format for x in cls.DATE_INDICATORS]) and cls.BAD_DATE_RE.search(format) is None
def is_format_date(cls, format): return any([x in format for x in cls.DATE_INDICATORS ]) and cls.BAD_DATE_RE.search(format) is None