Relative Time

A component that displays time in various timezones.

EST
May 10, 2026
03:16:56 AM
GMT
May 10, 2026
08:16:56 AM
JST
May 10, 2026
04:16:56 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
Sunday, May 10, 2026
03:16:56 AM
GMT
Sunday, May 10, 2026
08:16:56 AM
JST
Sunday, May 10, 2026
04:16:56 PM

Custom time format

EST
May 10, 2026
07:16 AM
GMT
May 10, 2026
07:16 AM
JST
May 10, 2026
07:16 AM

Controlled time

EST
May 10, 2026
03:16:56 AM
GMT
May 10, 2026
08:16:56 AM
JST
May 10, 2026
04:16:56 PM