Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type Aliases

CalendarKey: "sameDay" | "nextDay" | "lastDay" | "nextWeek" | "lastWeek" | "sameElse" | string
CalendarSpecVal: string | ((m?: export=.MomentInput, now?: export=.Moment) => string)
DurationInputArg1: export=.Duration | number | string | export=.FromTo | export=.DurationInputObject | null | undefined
LocaleSpecifier: string | export=.Moment | export=.Duration | string[] | boolean
LongDateFormatKey: "LTS" | "LT" | "L" | "LL" | "LLL" | "LLLL" | "lts" | "lt" | "l" | "ll" | "lll" | "llll"
MomentFormatSpecification: string | export=.MomentBuiltinFormat | (string | export=.MomentBuiltinFormat)[]
MomentInput: export=.Moment | Date | string | number | (number | string)[] | export=.MomentInputObject | null | undefined
MonthWeekdayFn: ((momentToFormat: export=.Moment, format?: string) => string)

Type declaration

    • Parameters

      Returns string

RelativeTimeFuturePastVal: string | ((relTime: string) => string)
RelativeTimeKey: "s" | "ss" | "m" | "mm" | "h" | "hh" | "d" | "dd" | "w" | "ww" | "M" | "MM" | "y" | "yy"
RelativeTimeSpecVal: string | ((n: number, withoutSuffix: boolean, key: export=.RelativeTimeKey, isFuture: boolean) => string)
WeekdaySimpleFn: ((momentToFormat: export=.Moment) => string)

Type declaration

Functions

  • Parameters

    • Optional inp: export=.MomentInput
    • Optional strict: boolean

      Strict parsing disables the deprecated fallback to the native Date constructor when parsing a string.

    Returns export=.Moment

  • Parameters

    • Optional inp: export=.MomentInput
    • Optional format: export=.MomentFormatSpecification
    • Optional strict: boolean

      Strict parsing requires that the format and input match exactly, including delimiters. Strict parsing is frequently the best parsing option. For more information about choosing strict vs forgiving parsing, see the parsing guide.

    Returns export=.Moment

  • Parameters

    • Optional inp: export=.MomentInput
    • Optional format: export=.MomentFormatSpecification
    • Optional language: string
    • Optional strict: boolean

      Strict parsing requires that the format and input match exactly, including delimiters. Strict parsing is frequently the best parsing option. For more information about choosing strict vs forgiving parsing, see the parsing guide.

    Returns export=.Moment

Generated using TypeDoc