@js-sugar/date
Version:
A multi-calendar, tree-shakable, extensible, immutable and lightweight date library for JavaScript
28 lines (27 loc) • 861 B
TypeScript
/**
* @category Locale
* @module RuntimeLocale
*/
import { MonthNameFormat, WeekdayNameFormat, ZoneTitleFormat } from '../common';
import { Calendar } from '../calendar';
import { Locale } from './locale';
/**
* A locale created by using javascript Intl API.
* @class
*/
export declare class RuntimeLocale extends Locale {
#private;
constructor(name: string, options: {
weekStart: number;
});
/**
* Gets the resolved name of this locale.
*/
get resolvedName(): string;
getWeekdayNames(format?: WeekdayNameFormat, weekStart?: number): string[];
getMonthNames(calendar: Calendar, format?: MonthNameFormat): string[];
getZoneTitle(zoneName: string, format?: ZoneTitleFormat): string;
formatNumber(n: number, options?: {
minimumIntegerDigits?: number;
}): string;
}