@amabeth/time-picker
    Preparing search index...

    Function durationToString

    • Transform duration to string representation. Adds leading zero for one digit hours, minutes or seconds. Can only output part of the duration e.g. only hours and minutes. Optionally add units like "h", "m" and "s".

      Parameters

      • duration: Duration

        to transform into string

      • include: { hours: boolean; minutes: boolean; seconds: boolean } = ...

        which parts of the duration should be included

      • units: { hours: string; minutes: string; seconds: string } = ...

        to display after hours, minutes and seconds

      Returns string