Bootstrap\View\Helper\BootstrapFormHelper::time PHP Method

time() public method

### Options: See dateTime() for time options.
See also: Cake\View\Helper\FormHelper::dateTime() for templating options.
public time ( string $fieldName, array $options = [] ) : string
$fieldName string Prefix name for the SELECT element
$options array Array of Options
return string Generated set of select boxes for time formats chosen.
    public function time($fieldName, array $options = [])
    {
        $fields = ['hour' => true, 'minute' => true, 'second' => false, 'timeFormat' => false];
        return $this->_wrapTemplates(['dateWidget' => $this->_getDatetimeTemplate($fields, $options)], 'parent::time', [$fieldName, $options]);
    }