Skip to the content

Kuni国

Look up countries, codes, names and subdivisions, load country data on demand and mount a native country card.

Kuni (国) is Japanese for a country. About the name

Contents

Reference · /zones

ZoneAnswertype

A zone, and whether it was worked out rather than read: estimated is true where kuni had to choose.

Import it

import type { ZoneAnswer } from "@johnmorrisdotca/kuni/zones";

Definition

interface ZoneAnswer {
    zone: string;
    estimated: boolean;
}

Members

NameTypeDescription
zonestring

The IANA zone, "America/Los_Angeles".

estimatedboolean

True where kuni chose it (nearest a capital or a point), false where a source names it alone.

Examples

import { subdivisionTimeZone, type ZoneAnswer } from "@johnmorrisdotca/kuni/zones";

const answer: ZoneAnswer | null = subdivisionTimeZone("CA-BC");
console.log(answer?.zone); // "America/Vancouver"
America/Vancouver

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kuni 1.19.0.