Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Object
    • Moment

Index

Properties

constructor: Function

The initial value of Object.prototype.constructor is the standard built-in Object constructor.

Methods

  • deprecated

    use date(d)

    Parameters

    • d: number

    Returns export=.Moment

  • deprecated

    use date()

    Returns number

  • daysInMonth(): number
  • Returns number

  • format(format?: string): string
  • Parameters

    • Optional format: string

    Returns string

  • fromNow(withoutSuffix?: boolean): string
  • Parameters

    • Optional withoutSuffix: boolean

    Returns string

  • hasOwnProperty(v: PropertyKey): boolean
  • Determines whether an object has a property with the specified name.

    Parameters

    • v: PropertyKey

      A property name.

    Returns boolean

  • inspect(): string
  • Returns string

  • invalidAt(): number
  • Returns number

  • isDST(): boolean
  • Returns boolean

  • isDSTShifted(): boolean
  • deprecated

    no reliable implementation

    Returns boolean

  • isLeapYear(): boolean
  • Returns boolean

  • isLocal(): boolean
  • Returns boolean

  • isPrototypeOf(v: Object): boolean
  • Determines whether an object exists in another object's prototype chain.

    Parameters

    • v: Object

      Another object whose prototype chain is to be checked.

    Returns boolean

  • isUTC(): boolean
  • Returns boolean

  • isUtc(): boolean
  • deprecated

    use isUTC

    Returns boolean

  • isUtcOffset(): boolean
  • Returns boolean

  • isValid(): boolean
  • Returns boolean

  • isoWeekday(): number
  • isoWeekday(d: string | number): export=.Moment
  • isoWeeksInISOWeekYear(): number
  • Returns number

  • isoWeeksInYear(): number
  • Returns number

  • deprecated

    use month(M)

    Parameters

    • M: string | number

    Returns export=.Moment

  • deprecated

    use month()

    Returns number

  • propertyIsEnumerable(v: PropertyKey): boolean
  • Determines whether a specified property is enumerable.

    Parameters

    • v: PropertyKey

      A property name.

    Returns boolean

  • toArray(): [number, number, number, number, number, number, number]
  • Returns [number, number, number, number, number, number, number]

  • toISOString(keepOffset?: boolean): string
  • Parameters

    • Optional keepOffset: boolean

    Returns string

  • toJSON(): string
  • Returns string

  • toLocaleString(): string
  • Returns a date converted to a string using the current locale.

    Returns string

  • toNow(withoutPrefix?: boolean): string
  • Parameters

    • Optional withoutPrefix: boolean

    Returns string

  • toString(): string
  • Returns a string representation of an object.

    Returns string

  • unix(): number
  • Returns number

  • utcOffset(): number
  • utcOffset(b: string | number, keepLocalTime?: boolean): export=.Moment
  • Returns number

  • Parameters

    • b: string | number
    • Optional keepLocalTime: boolean

    Returns export=.Moment

  • valueOf(): number
  • Returns number

    Unix timestamp in milliseconds

  • weeksInYear(): number
  • Returns number

  • deprecated

    use year(y)

    Parameters

    • y: number

    Returns export=.Moment

  • deprecated

    use year()

    Returns number

  • deprecated

    in favor of utcOffset

    Returns number

  • Parameters

    • b: string | number

    Returns export=.Moment

  • zoneAbbr(): string
  • zoneAbbr(): string
  • Returns string

  • Returns string

  • zoneName(): string
  • zoneName(): string
  • Returns string

  • Returns string

Generated using TypeDoc