Relative Time

A component that displays time in various timezones.

EST
November 28, 2025
05:17:16 AM
GMT
November 28, 2025
10:17:16 AM
JST
November 28, 2025
07:17:16 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
Friday, November 28, 2025
05:17:16 AM
GMT
Friday, November 28, 2025
10:17:16 AM
JST
Friday, November 28, 2025
07:17:16 PM

Custom time format

EST
November 28, 2025
10:17 AM
GMT
November 28, 2025
10:17 AM
JST
November 28, 2025
10:17 AM

Controlled time

EST
November 28, 2025
05:17:16 AM
GMT
November 28, 2025
10:17:16 AM
JST
November 28, 2025
07:17:16 PM