@karmaniverous/rrstack
    Preparing search index...

    Function toIsoDuration

    • Convert structured DurationParts to an ISO-8601 duration string.

      • Integer-only components.
      • If weeks are present alongside any other component, they are converted to days (weeks * 7).
      • Emits either PnW (weeks-only) or standard PnYnMnDTnHnMnS.

      Parameters

      Returns string

      If all components are zero or any component is invalid.