original_string: protected function evalDatetimeTypeValue($record, $column, $value)
      {
          if ($value === null) {
              return null;
          }
  
          $dateTime = $this->validateDateTimeValue($value, $column);
  
          if ($column->format !== null) {
              $value = $dateTime->format($column->format);
          }
          else {
              $value = $dateTime->toDayDateTimeString();
          }
  
          $options = [
              'defaultValue' => $value,
              'format' => $column->format,
              'formatAlias' => 'dateTimeLongMin'
          ];
  
          if (!empty($column->config['ignoreTimezone'])) {
              $options['ignoreTimezone'] = true;
          }
  
          return Backend::dateTime($dateTime, $options);
      }
code: protected function evalDatetimeTypeValue($record, $column, $value)
      {
          if ($value === null) {
              return null;
          }
  
          $dateTime = $this->validateDateTimeValue($value, $column);
  
          if ($column->format !== null) {
              $value = $dateTime->format($column->format);
          }
          else {
              $value = $dateTime->toDayDateTimeString();
          }
  
          $options = [
              'defaultValue' => $value,
              'format' => $column->format,
              'formatAlias' => 'dateTimeLongMin'
          ];
  
          if (!empty($column->config['ignoreTimezone'])) {
              $options['ignoreTimezone'] = true;
          }
  
          return Backend::dateTime($dateTime, $options);
      }
code_tokens: protected function evalDatetimeTypeValue ( $ record , $ column , $ value ) { if ( $ value === null ) { return null ; } $ dateTime = $ this -> validateDateTimeValue ( $ value , $ column ) ; if ( $ column -> format !== null ) { $ value = $ dateTime -> format ( $ column -> format ) ; } else { $ value = $ dateTime -> toDayDateTimeString ( ) ; } $ options = [ 'defaultValue' => $ value , 'format' => $ column -> format , 'formatAlias' => 'dateTimeLongMin' ] ; if ( ! empty ( $ column -> config [ 'ignoreTimezone' ] ) ) { $ options [ 'ignoreTimezone' ] = true ; } return Backend :: dateTime ( $ dateTime , $ options ) ; }
docstring: Process as a datetime value
docstring_tokens: Process as a datetime value