interface Locale { calendar( key?: string, m?: Universe.Vendor.Moment.Moment, now?: Universe.Vendor.Moment.Moment, ): string; firstDayOfWeek(): number; firstDayOfYear(): number; invalidDate(): string; isPM(input: string): boolean; longDateFormat(key: LongDateFormatKey): string; meridiem(hour: number, minute: number, isLower: boolean): string; months(): string[]; months(m: Universe.Vendor.Moment.Moment, format?: string): string; monthsParse(monthName: string, format: string, strict: boolean): number; monthsRegex(strict: boolean): RegExp; monthsShort(): string[]; monthsShort(m: Universe.Vendor.Moment.Moment, format?: string): string; monthsShortRegex(strict: boolean): RegExp; ordinal(n: number): string; pastFuture(diff: number, absRelTime: string): string; postformat(inp: string): string; preparse(inp: string): string; relativeTime( n: number, withoutSuffix: boolean, key: RelativeTimeKey, isFuture: boolean, ): string; set(config: Object): void; week(m: Universe.Vendor.Moment.Moment): number; weekdays(): string[]; weekdays(m: Universe.Vendor.Moment.Moment, format?: string): string; weekdaysMin(): string[]; weekdaysMin(m: Universe.Vendor.Moment.Moment): string; weekdaysMinRegex(strict: boolean): RegExp; weekdaysParse(weekdayName: string, format: string, strict: boolean): number; weekdaysRegex(strict: boolean): RegExp; weekdaysShort(): string[]; weekdaysShort(m: Universe.Vendor.Moment.Moment): string; weekdaysShortRegex(strict: boolean): RegExp;} Методы
isPM
isPM(input: string): boolean
meridiem
meridiem(hour: number, minute: number, isLower: boolean): string Параметры
- hour: number
- minute: number
- isLower: boolean
Возвращает string
monthsParse
monthsParse(monthName: string, format: string, strict: boolean): number Параметры
- monthName: string
- format: string
- strict: boolean
Возвращает number
monthsRegex
monthsRegex(strict: boolean): RegExp
monthsShortRegex
monthsShortRegex(strict: boolean): RegExp
ordinal
ordinal(n: number): string
pastFuture
pastFuture(diff: number, absRelTime: string): string Параметры
- diff: number
- absRelTime: string
Возвращает string
postformat
postformat(inp: string): string
preparse
preparse(inp: string): string
relativeTime
relativeTime( n: number, withoutSuffix: boolean, key: RelativeTimeKey, isFuture: boolean,): string
set
set(config: Object): void
weekdaysMinRegex
weekdaysMinRegex(strict: boolean): RegExp
weekdaysParse
weekdaysParse(weekdayName: string, format: string, strict: boolean): number Параметры
- weekdayName: string
- format: string
- strict: boolean
Возвращает number
weekdaysRegex
weekdaysRegex(strict: boolean): RegExp
weekdaysShort
weekdaysShort(): string[] Возвращает string[]
weekdaysShortRegex
weekdaysShortRegex(strict: boolean): RegExp