Function timeIntToStringUnsafe

  • Converts a time integer to a string in an unsafe manner.

    Parameters

    • ms: number

      The time in milliseconds to be converted to a string.

    • msDelimiter: string = '.'

      The delimiter to be used in the resulting string. Defaults to '.'.

    Returns string

    The time as a string.

    Remarks

    This function does not perform any safety checks and may throw an error if the input is not as expected.

    Example

    const timeString = timeIntToStringUnsafe(1500, ':');
    console.log(timeString); // Outputs "1:500"

Generated using TypeDoc