protected function isInitDatetime($attribute)
    {
        if ($this->timeFormat === static::$timeFormatDatetime) {
            return $attribute == static::$initDatetime || $attribute == null;
        }
        if ($this->timeFormat === static::$timeFormatTimestamp) {
            return $attribute == static::$initTimestamp || $attribute == null;
        }
        return false;
    }
protected function isInitDatetime($attribute)
    {
        if ($this->timeFormat === static::$timeFormatDatetime) {
            return $attribute == static::$initDatetime || $attribute == null;
        }
        if ($this->timeFormat === static::$timeFormatTimestamp) {
            return $attribute == static::$initTimestamp || $attribute == null;
        }
        return false;
    }
protected function isInitDatetime ( $ attribute ) { if ( $ this -> timeFormat === static :: $ timeFormatDatetime ) { return $ attribute == static :: $ initDatetime || $ attribute == null ; } if ( $ this -> timeFormat === static :: $ timeFormatTimestamp ) { return $ attribute == static :: $ initTimestamp || $ attribute == null ; } return false ; }
Check whether the attribute is init datetime.
@param mixed $attribute
@return boolean
Check whether the attribute is init datetime .