Example #1
0
    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
Example #2
0
    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
Example #3
0
 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
Example #4
0
 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