@mica/sdk (SDK contract v1)
    Preparing search index...

    Function formatDuration

    • Seconds as m:ss, or h:mm:ss past an hour. MICA-111.

      Here rather than inline in the Music app because a "how long" readout is not app-specific — MediaThumb and the Phone app's call timer each wrote their own, and a third copy is how three surfaces end up disagreeing about what 90 seconds looks like. Those two are left alone rather than refactored mid-flight; this is the one to reach for next time.

      Parameters

      • totalSeconds: number

      Returns string