• Formats a number of seconds into a time string with the pattern hh:mm:ss.

    Parameters

    • totalSeconds: number

      the total number of seconds to format to string

    • format: string = FORMAT_HHMMSS

      the time format to output (default: hh:mm:ss)

    Returns string

    the formatted time string