Data & Utilities·loomora → useTimezones

useTimezones

Provides querying and region-grouping for global IANA timezones, formatted UTC offset strings, and localized city descriptors.

Interactive live playground

Interact with the hook state and inspect computed return values in real time.

Live
Matched Timezones (0)

Timezone Search

Search Query"Muscat"
Common CitiesMuscat

How to call

Import directly from the Loomora root package in any React client component.

import { useTimezones } from 'loomora'

export function TimezoneSelect() {
  const { timezones, getTimezone } = useTimezones()

  const current = getTimezone('Asia/Muscat')

  return (
    <div>
      <p>Timezone: {current?.name}</p>
      <p>Offset: {current?.offset}</p>
    </div>
  )
}

Return values & methods

API signatures and utilities returned by this hook.

2 methods
Method / PropTypeDescription
timezonesTimezone[]List of all standard IANA timezones with region metadata.
getTimezone(name)(name: string) => Timezone | undefinedRetrieves metadata for a specific timezone key.