Relative Time

A component that displays time in various timezones.

EST
April 24, 2026
02:46:19 PM
GMT
April 24, 2026
07:46:19 PM
JST
April 25, 2026
03:46:19 AM

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
Friday, April 24, 2026
02:46:19 PM
GMT
Friday, April 24, 2026
07:46:19 PM
JST
Friday, April 24, 2026
03:46:19 AM

Custom time format

EST
April 24, 2026
06:46 PM
GMT
April 24, 2026
06:46 PM
JST
April 25, 2026
06:46 PM

Controlled time

EST
April 24, 2026
02:46:19 PM
GMT
April 24, 2026
07:46:19 PM
JST
April 25, 2026
03:46:19 AM