Interface Duration

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

  • Parameters

    Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Parameters

    Returns number

  • Returns number

  • Parameters

    Returns string

  • Parameters

    Returns string

  • Returns boolean

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns string

  • Returns string

    Deprecated

  • Returns string

  • Returns number

  • Returns number