interface Duration {
    abs(): Duration;
    add(inp?, unit?): Duration;
    as(units): number;
    asDays(): number;
    asHours(): number;
    asMilliseconds(): number;
    asMinutes(): number;
    asMonths(): number;
    asSeconds(): number;
    asWeeks(): number;
    asYears(): number;
    clone(): Duration;
    days(): number;
    get(units): number;
    hours(): number;
    humanize(argWithSuffix?, argThresholds?): string;
    humanize(argThresholds?): string;
    isValid(): boolean;
    lang(locale): Moment;
    lang(): Locale;
    locale(): string;
    locale(locale): Duration;
    localeData(): Locale;
    milliseconds(): number;
    minutes(): number;
    months(): number;
    seconds(): number;
    subtract(inp?, unit?): Duration;
    toISOString(): string;
    toIsoString(): string;
    toJSON(): string;
    weeks(): number;
    years(): number;
}

Methods

  • Returns Duration

  • Parameters

    Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns Duration

  • Returns number

  • Parameters

    Returns number

  • Returns number

  • Parameters

    Returns string

  • Parameters

    Returns string

  • Returns boolean

  • Parameters

    Returns Moment

    Deprecated

    since version 2.8.0

  • Returns Locale

    Deprecated

    since version 2.8.0

  • Returns string

  • Parameters

    Returns Duration

  • Returns Locale

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns string

  • Returns string

    Deprecated

  • Returns string

  • Returns number

  • Returns number