mediaforge - v2.2.0
    Preparing search index...

    Function formatDuration

    • Format a duration in seconds to a human-readable HH:MM:SS.mmm string.

      Parameters

      • seconds: number

      Returns string

      If seconds is negative or not finite. The previous implementation happily produced nonsense such as "-1:-1:-5.000" and "NaN:NaN:000NaN" for these inputs.