Hierarchy

  • Duration

Constructors

  • Parameters

    • input: undefined | string | number | Partial<{
          days: number;
          hours: number;
          milliseconds: number;
          minutes: number;
          months: number;
          seconds: number;
          weeks: number;
          years: number;
      }>
    • Optional unit: DurationUnitType

    Returns Duration

Properties

#duration: Duration

Accessors

Methods

  • Parameters

    • Optional input: string | number | Partial<{
          days: number;
          hours: number;
          milliseconds: number;
          minutes: number;
          months: number;
          seconds: number;
          weeks: number;
          years: number;
      }>
    • Optional unit: DurationUnitType

    Returns Duration

Generated using TypeDoc