method

time_field_tag

rails latest stable - Class: ActionView::Helpers::FormTagHelper
time_field_tag(name, value = nil, options = {})
public

Creates a text field of type “time”.

Options

Supports the same options as #text_field_tag. Additionally, supports:

  • :min - The minimum acceptable value.

  • :max - The maximum acceptable value.

  • :step - The acceptable value granularity.

  • :include_seconds - Include seconds and ms in the output timestamp format (true by default).