interface Locale {
    calendar(key?, m?, now?): string;
    firstDayOfWeek(): number;
    firstDayOfYear(): number;
    invalidDate(): string;
    isPM(input): boolean;
    longDateFormat(key): string;
    meridiem(hour, minute, isLower): string;
    months(): string[];
    months(m, format?): string;
    monthsParse(monthName, format, strict): number;
    monthsRegex(strict): RegExp;
    monthsShort(): string[];
    monthsShort(m, format?): string;
    monthsShortRegex(strict): RegExp;
    ordinal(n): string;
    pastFuture(diff, absRelTime): string;
    postformat(inp): string;
    preparse(inp): string;
    relativeTime(n, withoutSuffix, key, isFuture): string;
    set(config): void;
    week(m): number;
    weekdays(): string[];
    weekdays(m, format?): string;
    weekdaysMin(): string[];
    weekdaysMin(m): string;
    weekdaysMinRegex(strict): RegExp;
    weekdaysParse(weekdayName, format, strict): number;
    weekdaysRegex(strict): RegExp;
    weekdaysShort(): string[];
    weekdaysShort(m): string;
    weekdaysShortRegex(strict): RegExp;
}

Methods

  • Parameters

    Returns string

  • Returns number

  • Returns number

  • Returns string

  • Parameters

    • input: string

    Returns boolean

  • Parameters

    Returns string

  • Parameters

    • hour: number
    • minute: number
    • isLower: boolean

    Returns string

  • Returns string[]

  • Parameters

    • m: Moment
    • Optional format: string

    Returns string

  • Parameters

    • monthName: string
    • format: string
    • strict: boolean

    Returns number

  • Parameters

    • strict: boolean

    Returns RegExp

  • Returns string[]

  • Parameters

    • m: Moment
    • Optional format: string

    Returns string

  • Parameters

    • strict: boolean

    Returns RegExp

  • Parameters

    • n: number

    Returns string

  • Parameters

    • diff: number
    • absRelTime: string

    Returns string

  • Parameters

    • inp: string

    Returns string

  • Parameters

    • inp: string

    Returns string

  • Parameters

    Returns string

  • Parameters

    • config: Object

    Returns void

  • Parameters

    Returns number

  • Returns string[]

  • Parameters

    • m: Moment
    • Optional format: string

    Returns string

  • Returns string[]

  • Parameters

    Returns string

  • Parameters

    • strict: boolean

    Returns RegExp

  • Parameters

    • weekdayName: string
    • format: string
    • strict: boolean

    Returns number

  • Parameters

    • strict: boolean

    Returns RegExp

  • Returns string[]

  • Parameters

    Returns string

  • Parameters

    • strict: boolean

    Returns RegExp