gameforge - v0.1.29
    Preparing search index...

    Function formatTime

    • Formats a duration given in seconds into a string in the format "HH:MM:SS" or "MM:SS" if hours are zero.

      Parameters

      • totalSeconds: number

        The total duration in seconds to format.

      Returns string

      A string representing the formatted time.