Methods
isPM
- isPM(input: string): boolean
Parameters
Returns boolean
meridiem
- meridiem(hour: number, minute: number, isLower: boolean): string
Parameters
hour: number
minute: number
isLower: boolean
Returns string
months
- months(): string[]
- months(m: export=.Moment, format?: string): string
Returns string[]
Parameters
Returns string
monthsParse
- monthsParse(monthName: string, format: string, strict: boolean): number
Parameters
monthName: string
format: string
strict: boolean
Returns number
monthsRegex
- monthsRegex(strict: boolean): RegExp
monthsShort
- monthsShort(): string[]
- monthsShort(m: export=.Moment, format?: string): string
Returns string[]
Parameters
Returns string
monthsShortRegex
- monthsShortRegex(strict: boolean): RegExp
ordinal
- ordinal(n: number): string
pastFuture
- pastFuture(diff: number, absRelTime: string): string
Parameters
diff: number
absRelTime: string
Returns string
postformat
- postformat(inp: string): string
preparse
- preparse(inp: string): string
relativeTime
Parameters
n: number
withoutSuffix: boolean
isFuture: boolean
Returns string
set
- set(config: Object): void
weekdays
- weekdays(): string[]
- weekdays(m: export=.Moment, format?: string): string
Returns string[]
Parameters
Returns string
weekdaysMin
Returns string[]
Parameters
Returns string
weekdaysMinRegex
- weekdaysMinRegex(strict: boolean): RegExp
weekdaysParse
- weekdaysParse(weekdayName: string, format: string, strict: boolean): number
Parameters
weekdayName: string
format: string
strict: boolean
Returns number
weekdaysRegex
- weekdaysRegex(strict: boolean): RegExp
weekdaysShort
- weekdaysShort(): string[]
- weekdaysShort(m: export=.Moment): string
Returns string[]
Parameters
Returns string
weekdaysShortRegex
- weekdaysShortRegex(strict: boolean): RegExp