original_string: public function meridian($fieldName, array $options = [])
      {
          $options = $this->_singleDatetime($options, 'meridian');
  
          if (isset($options['val'])) {
              $hour = date('H');
              $options['val'] = [
                  'hour' => $hour,
                  'minute' => (int)$options['val'],
                  'meridian' => $hour > 11 ? 'pm' : 'am',
              ];
          }
  
          return $this->dateTime($fieldName, $options);
      }
code: public function meridian($fieldName, array $options = [])
      {
          $options = $this->_singleDatetime($options, 'meridian');
  
          if (isset($options['val'])) {
              $hour = date('H');
              $options['val'] = [
                  'hour' => $hour,
                  'minute' => (int)$options['val'],
                  'meridian' => $hour > 11 ? 'pm' : 'am',
              ];
          }
  
          return $this->dateTime($fieldName, $options);
      }
code_tokens: public function meridian ( $ fieldName , array $ options = [ ] ) { $ options = $ this -> _singleDatetime ( $ options , 'meridian' ) ; if ( isset ( $ options [ 'val' ] ) ) { $ hour = date ( 'H' ) ; $ options [ 'val' ] = [ 'hour' => $ hour , 'minute' => ( int ) $ options [ 'val' ] , 'meridian' => $ hour > 11 ? 'pm' : 'am' , ] ; } return $ this -> dateTime ( $ fieldName , $ options ) ; }
docstring: Returns a SELECT element for AM or PM.
  
  ### Attributes:
  
  - `empty` - If true, the empty select option is shown. If a string,
  that string is displayed as the empty element.
  - `value` The selected value of the input.
  
  @param string $fieldName Prefix name for the SELECT element
  @param array $options Array of options
  @return string Completed meridian select input
  @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-meridian-inputs
docstring_tokens: Returns a SELECT element for AM or PM .