> For the complete documentation index, see [llms.txt](https://docs.hivepress.io/developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivepress.io/developer-docs/framework/fields/time.md).

# Time

This field type renders a time picker.

### Parameters

This type manages time in seconds, so it inherits the [Number](/developer-docs/framework/fields/number.md) type.

* **display\_format** - the displayed time [format](https://www.php.net/manual/en/datetime.format.php).

### Example

The code below renders a required time picker with the `custom_field` name, "Custom field" label and "Custom text" placeholder. It displays time in a custom format, e.g. "12:00 AM".

```php
echo ( new HivePress\Fields\Time(
	[
		'name'           => 'custom_field',
		'label'          => 'Custom field',
		'placeholder'    => 'Custom text',
		'display_format' => 'g:i A',
		'required'       => true,
	]
) )->render();
```
