Relative Time

A component that displays time in various timezones.

EST
February 8, 2026
08:56:28 PM
GMT
February 9, 2026
01:56:28 AM
JST
February 9, 2026
10:56:28 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, February 9, 2026
08:56:28 PM
GMT
Monday, February 9, 2026
01:56:28 AM
JST
Monday, February 9, 2026
10:56:28 AM

Custom time format

EST
February 8, 2026
01:56 AM
GMT
February 9, 2026
01:56 AM
JST
February 9, 2026
01:56 AM

Controlled time

EST
February 8, 2026
08:56:28 PM
GMT
February 9, 2026
01:56:28 AM
JST
February 9, 2026
10:56:28 AM