Function timeArrayToStringUnsafe

  • Converts an array of time values into a string representation. The array should contain four numbers representing hours, minutes, seconds, and milliseconds respectively. The function does not perform any safety checks on the input array.

    Parameters

    • array: number[]

      An array of four numbers representing hours, minutes, seconds, and milliseconds.

    • msDelimiter: string = '.'

      A string to be used as the delimiter between seconds and milliseconds. Defaults to '.'.

    Returns string

    A string representation of the time.

    Example

    const timeArray = [13, 15, 45, 123];
    const result = timeArrayToStringUnsafe(timeArray, ':');
    console.log(result); // Outputs: "13:15:45:123"

Generated using TypeDoc