src/DateTime.php
public function getFormat($name)
    {
        if (isset($this->formats[$name])) {
            return $this->formats[$name];
        }

        return null;
    }
public function getFormat($name)
    {
        if (isset($this->formats[$name])) {
            return $this->formats[$name];
        }

        return null;
    }
public function getFormat ( $ name ) { if ( isset ( $ this -> formats [ $ name ] ) ) { return $ this -> formats [ $ name ] ; } return null ; }
Returns a format by name.
@param $name string
@return string|null
Returns a format by name .