Relative Time

A component that displays time in various timezones.

EST
June 24, 2026
06:29:21 AM
GMT
June 24, 2026
11:29:21 AM
JST
June 24, 2026
07:29:21 PM

Installation

npx kibo-ui add relative-time

Features

  • Displays multiple timezones simultaneously
  • Supports both controlled and uncontrolled time states
  • Auto-updates every second when no time is provided
  • Customizable date and time format options
  • Clean, minimal UI with timezone labels and formatted times
  • Responsive layout with flex positioning

Examples

Custom date format

EST
Wednesday, June 24, 2026
06:29:21 AM
GMT
Wednesday, June 24, 2026
11:29:21 AM
JST
Wednesday, June 24, 2026
07:29:21 PM

Custom time format

EST
June 24, 2026
10:29 AM
GMT
June 24, 2026
10:29 AM
JST
June 24, 2026
10:29 AM

Controlled time

EST
June 24, 2026
06:29:21 AM
GMT
June 24, 2026
11:29:21 AM
JST
June 24, 2026
07:29:21 PM