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
calendar
- calendar(key?, m?, now?): string
Parameters
Optional
key: string
Optional
now: Moment
Returns string
firstDayOfWeek
- firstDayOfWeek(): number
Returns number
firstDayOfYear
- firstDayOfYear(): number
Returns number
invalidDate
- invalidDate(): string
Returns string
isPM
- isPM(input): boolean
Returns boolean
longDateFormat
- longDateFormat(key): string
Returns string
meridiem
- meridiem(hour, minute, isLower): string
Parameters
hour: number
minute: number
isLower: boolean
Returns string
months
- months(): string[]
Returns string[]
- months(m, format?): string
Returns string
monthsParse
- monthsParse(monthName, format, strict): number
Parameters
monthName: string
format: string
strict: boolean
Returns number
monthsRegex
- monthsRegex(strict): RegExp
Returns RegExp
monthsShort
- monthsShort(): string[]
Returns string[]
- monthsShort(m, format?): string
Returns string
monthsShortRegex
- monthsShortRegex(strict): RegExp
Returns RegExp
ordinal
- ordinal(n): string
Returns string
pastFuture
- pastFuture(diff, absRelTime): string
Parameters
diff: number
absRelTime: string
Returns string
postformat
- postformat(inp): string
Returns string
preparse
- preparse(inp): string
Returns string
relativeTime
- relativeTime(n, withoutSuffix, key, isFuture): string
Parameters
n: number
withoutSuffix: boolean
isFuture: boolean
Returns string
set
- set(config): void
Returns void
week
- week(m): number
Returns number
weekdays
- weekdays(): string[]
Returns string[]
- weekdays(m, format?): string
Returns string
weekdaysMin
- weekdaysMin(): string[]
Returns string[]
- weekdaysMin(m): string
Returns string
weekdaysMinRegex
- weekdaysMinRegex(strict): RegExp
Returns RegExp
weekdaysParse
- weekdaysParse(weekdayName, format, strict): number
Parameters
weekdayName: string
format: string
strict: boolean
Returns number
weekdaysRegex
- weekdaysRegex(strict): RegExp
Returns RegExp
weekdaysShort
- weekdaysShort(): string[]
Returns string[]
- weekdaysShort(m): string
Returns string
weekdaysShortRegex
- weekdaysShortRegex(strict): RegExp
Returns RegExp