# 12-hour clock with seconds

> Hour, minute, second and AM/PM columns for a stream go-live time.

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-time-picker-4).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-time-picker-4
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-time-picker-4-light-3666c5f0bfe4d7c9.png
- Registry item: https://reui.io/r/new-york-v4/c-time-picker-4.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-time-picker-4.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `field`, `@reui/time-picker`

## Files

### `c-time-picker-4.tsx`

```tsx
import { TimePicker } from "@/components/reui/time-picker"

import {
  Field,
  FieldDescription,
  FieldLabel,
} from "@/components/ui/field"

export function Pattern() {
  return (
    <div className="w-full max-w-xs">
      <Field>
        <FieldLabel id="stream-live-label" htmlFor="stream-live">
          Stream goes live
        </FieldLabel>
        {/* Only the display is 12-hour: the trigger shows 02:45:30 PM while
            the value stays 24-hour `HH:mm:ss`, "14:45:30". The popover
            gets 4 columns, hour, minute, second and AM/PM. */}
        <TimePicker
          id="stream-live"
          hourCycle={12}
          granularity="second"
          defaultValue="14:45:30"
          aria-labelledby="stream-live-label"
          aria-describedby="stream-live-description"
        />
        <FieldDescription id="stream-live-description">
          Pick the exact second the broadcast starts.
        </FieldDescription>
      </Field>
    </div>
  )
}
```
