Relative Time

A component that displays time in various timezones.

EST
January 25, 2026
08:22:43 PM
GMT
January 26, 2026
01:22:43 AM
JST
January 26, 2026
10:22:43 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
Monday, January 26, 2026
08:22:43 PM
GMT
Monday, January 26, 2026
01:22:43 AM
JST
Monday, January 26, 2026
10:22:43 AM

Custom time format

EST
January 25, 2026
01:22 AM
GMT
January 26, 2026
01:22 AM
JST
January 26, 2026
01:22 AM

Controlled time

EST
January 25, 2026
08:22:43 PM
GMT
January 26, 2026
01:22:43 AM
JST
January 26, 2026
10:22:43 AM