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

doesNumFmtIdIndicateDate() защищенный Метод

The result is cached to avoid recomputing the same thing over and over, as "numFmtId" attributes can be shared between multiple styles.
protected doesNumFmtIdIndicateDate ( integer $numFmtId ) : boolean
$numFmtId integer
Результат boolean Whether the number format ID indicates that the number is a date
    protected function doesNumFmtIdIndicateDate($numFmtId)
    {
        if (!isset($this->numFmtIdToIsDateFormatCache[$numFmtId])) {
            $formatCode = $this->getFormatCodeForNumFmtId($numFmtId);
            $this->numFmtIdToIsDateFormatCache[$numFmtId] = $this->isNumFmtIdBuiltInDateFormat($numFmtId) || $this->isFormatCodeCustomDateFormat($formatCode);
        }
        return $this->numFmtIdToIsDateFormatCache[$numFmtId];
    }