Relative Time

A component that displays time in various timezones.

EST
January 20, 2026
07:14:48 PM
GMT
January 21, 2026
12:14:48 AM
JST
January 21, 2026
09:14:48 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
Wednesday, January 21, 2026
07:14:48 PM
GMT
Wednesday, January 21, 2026
12:14:48 AM
JST
Wednesday, January 21, 2026
09:14:48 AM

Custom time format

EST
January 20, 2026
12:14 AM
GMT
January 21, 2026
12:14 AM
JST
January 21, 2026
12:14 AM

Controlled time

EST
January 20, 2026
07:14:48 PM
GMT
January 21, 2026
12:14:48 AM
JST
January 21, 2026
09:14:48 AM