code: public function setOptions($options)
      {
          /** @noinspection UnSafeIsSetOverArrayInspection */
          if (isset($options['time_format'])) {
              $this->setFormat($options['time_format']);
  
              unset($options['time_format']);
          }
  
          parent::setOptions($options);
  
          return $this;
      }
docs: Accepted options for DateTime:
  - format: A \DateTime compatible string
  
  @param array|\Traversable $options
  
  @return $this