Box\Spout\Reader\XLSX\Helper\StyleHelper::shouldFormatNumericValueAsDate PHP Метод

shouldFormatNumericValueAsDate() публичный Метод

Returns whether the style with the given ID should consider numeric values as timestamps and format the cell as a date.
public shouldFormatNumericValueAsDate ( integer $styleId ) : boolean
$styleId integer Zero-based style ID
Результат boolean Whether the cell with the given cell should display a date instead of a numeric value
    public function shouldFormatNumericValueAsDate($styleId)
    {
        $stylesAttributes = $this->getStylesAttributes();
        // Default style (0) does not format numeric values as timestamps. Only custom styles do.
        // Also if the style ID does not exist in the styles.xml file, format as numeric value.
        // Using isset here because it is way faster than array_key_exists...
        if ($styleId === self::DEFAULT_STYLE_ID || !isset($stylesAttributes[$styleId])) {
            return false;
        }
        $styleAttributes = $stylesAttributes[$styleId];
        return $this->doesStyleIndicateDate($styleAttributes);
    }