public function setPattern($pattern)
    {
        if (null === $pattern) {
            $pattern = $this->getDefaultPattern();
        }

        $this->pattern = $pattern;

        return true;
    }
public function setPattern($pattern)
    {
        if (null === $pattern) {
            $pattern = $this->getDefaultPattern();
        }

        $this->pattern = $pattern;

        return true;
    }
public function setPattern ( $ pattern ) { if ( null === $ pattern ) { $ pattern = $ this -> getDefaultPattern ( ) ; } $ this -> pattern = $ pattern ; return true ; }
Set the formatter's pattern.

@param string|null $pattern A pattern string in conformance with the ICU IntlDateFormatter documentation

@return bool true on success or false on failure

@see http://www.php.net/manual/en/intldateformatter.setpattern.php
@see http://userguide.icu-project.org/formatparse/datetime
Set the formatter s pattern .