コード例 #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
コード例 #2
0
ファイル: style.py プロジェクト: OpenPOWER-BigData/HDP-hue
    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
コード例 #3
0
ファイル: style.py プロジェクト: holm/openpyxl
 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
コード例 #4
0
ファイル: style.py プロジェクト: V-Akhila/openpyxl
 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