node-web-mvc
Version:
node spring mvc
31 lines (30 loc) • 1.29 kB
TypeScript
import Locale from '../../locale/Locale';
export interface DateTimeLocale {
monthsShort: string[];
months: string[];
week: string[];
weekShort: string[];
weekdaysMin: string[];
pam: string[];
weekDefine: {
firstDayOfWeek: number;
dminimalDaysInFirstWeeky: number;
};
}
export default class DateTimeTextProvider {
static register(locale: string, info: DateTimeLocale): void;
private static getAndRegister;
static getLocaleInfo(locale: Locale): DateTimeLocale;
static getMonth(raw: number, locale: Locale, full: boolean): string;
static findMonth(raw: string, locale: Locale, full: boolean): number;
static getWeek(raw: number, locale: Locale, full: boolean): string;
static findWeek(raw: string, locale: Locale, full: boolean): number;
static getPAM(hour: number, locale: Locale): string;
static findPAM(raw: string, locale: Locale): number;
static startOfWeekOffset(days: number, dow: number, weekDef: DateTimeLocale['weekDefine']): number;
static computeWeek(offset: number, days: number): number;
static dayOffYear(date: Date): number;
static getWeekOfMonth(date: Date, locale: Locale): string;
static getWeekOfYear(date: Date, locale: Locale): any;
private static floorMod;
}