@phensley/cldr-core
Version:
Core library for @phensley/cldr
19 lines (18 loc) • 511 B
TypeScript
import { MetaZoneType } from '@phensley/cldr-schema';
export interface ZoneInfo {
timeZoneId: string;
metaZoneId: MetaZoneType;
dst: boolean;
offset: number;
}
export declare class ZoneInfoCache {
private zoneData;
constructor();
get(epoch: number, timeZoneId: string): ZoneInfo;
private getZoneData(zoneId);
}
export declare const zoneInfoCache: ZoneInfoCache;
/**
* Checks if this timezone id is an alias.
*/
export declare const substituteZoneAlias: (id: string) => string;